@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --bg-page: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.88);
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-dark: #047857;
    --primary-soft: #ecfdf5;
    --primary-glow: rgba(16, 185, 129, 0.35);
    --accent: #06b6d4;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.07);
    --shadow-glow: 0 20px 40px -10px rgba(16, 185, 129, 0.25);
    --radius-2xl: 28px;
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    outline: none;
}

body {
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.12) 0px, transparent 45%),
        radial-gradient(at 85% 25%, rgba(6, 182, 212, 0.10) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(52, 211, 153, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- نوار بالایی Glassmorphism --- */
header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 21px;
    font-weight: 800;
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 18px var(--primary-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.btn-add-music {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-add-music:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

/* --- بخش Hero بنر ویژه --- */
.hero-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0 20px;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
    background: linear-gradient(120deg, #0f172a, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 480px;
}

/* --- کادر جستجو مدرن --- */
.search-wrapper {
    position: relative;
    max-width: 500px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 28px var(--primary-glow);
}

.search-box input {
    border: none;
    flex: 1;
    font-size: 15px;
    color: var(--text-main);
    background: transparent;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box button:hover {
    background: var(--primary-hover);
}

/* --- کارت پیشنهاد ویژه در Hero --- */
.featured-widget {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-2xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.featured-cover-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 220px;
}

.featured-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    padding-top: 16px;
}

.featured-title {
    font-size: 18px;
    font-weight: 800;
}

.featured-artist {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- انیمیشن اکولایزر صوتی --- */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    margin-top: 8px;
}

.eq-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: bounceEq 1.2s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes bounceEq {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* --- تب‌های فیلتر دسته‌بندی --- */
.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 0 10px;
    margin-bottom: 20px;
}

.pill-item {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.pill-item.active, .pill-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* --- گرید کارت‌های موزیک ۳ بعدی --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    display: inline-block;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
}

.song-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.song-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(16, 185, 129, 0.4);
}

.cover-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #e2e8f0;
    overflow: hidden;
}

.song-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.song-card:hover .song-cover {
    transform: scale(1.08);
}

.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: var(--transition);
}

.play-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.6);
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.song-card:hover .card-play-overlay {
    opacity: 1;
}

.song-card:hover .play-circle-btn {
    transform: scale(1);
}

.song-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.song-title {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.download-count {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-card {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-card:hover {
    background: var(--primary);
    color: #fff;
}

/* --- فوتر --- */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: #fff;
    padding: 24px 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ریسپانسیو */
@media (max-width: 860px) {
    .hero-banner {
        grid-template-columns: 1fr;
    }
    .featured-widget {
        display: none;
    }
}
