/* =========================================
   3. HERO SECTION
   ========================================= */

.hero {
    height: 100vh;
    min-height: 600px;
    background: url('/public/assets/images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px var(--primary-glow); 
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover { background: white; color: black; }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); }

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* =========================================
   HIGHLIGHT & RESPONSIVE HERO
   ========================================= */
.highlight { color: var(--primary-color); }

@media (max-width: 768px) {
    .hero { min-height: 520px; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: 30px; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn { padding: 12px 26px; font-size: 0.95rem; }

    .gallery-hero .hero-title { font-size: 2.2rem; }
    .gallery-hero .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .gallery-hero .hero-title { font-size: 1.8rem; }
}

/* =========================================
HOME PAGE - صفحه اصلی
========================================= */

/* Hero بهبود یافته */
.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    color: #fff;
    font-size: .85rem;
    margin-bottom: 20px;
    letter-spacing: .5px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.hero-actions .btn { min-width: 180px; justify-content: center; }

/* Stats Section */
.stats-section {
    padding: 60px 20px;
    background: var(--bg-card);
    margin-top: -30px;
    position: relative;
    z-index: 2;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-item .stat-icon {
    width: 60px; height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(212,175,55,.3);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}
.stat-label {
    color: var(--text-muted);
    font-size: .95rem;
}

/* Genre Card بهبود یافته */
.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 20px;
    background: var(--bg-card);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}
.genre-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}
.genre-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
    margin-bottom: 18px;
    transition: var(--transition);
}
.genre-card:hover .genre-icon { transform: rotate(-8deg) scale(1.05); }
.genre-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.genre-link {
    color: var(--primary-color);
    font-size: .88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Home Gallery Grid */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.home-gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    margin: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.home-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.home-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.home-gallery-item:hover img { transform: scale(1.08); }
.home-gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 40px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
}
.home-gallery-item:hover figcaption { opacity: 1; }
.home-gallery-item h4 { font-size: 1rem; margin-bottom: 4px; }
.home-gallery-item span { font-size: .8rem; opacity: .85; }

/* Private Teaser - سکشن گالری اختصاصی مشتریان (سازگار با هر دو تم) */
.private-teaser-section {
    background: var(--bg-card);
    padding: 80px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.teaser-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.teaser-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(212,175,55,.15);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
[data-theme="dark"] .teaser-tag { color: var(--primary-color); }
.teaser-tag i { margin-left: 5px; }
.teaser-content h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    line-height: 1.4;
    color: var(--text-main);
}
.teaser-content > p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}
.teaser-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}
.teaser-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}
.teaser-features i { color: var(--success-color); }
.teaser-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* دکمه ثانویه (ثبت‌نام) فقط داخل این سکشن - سازگار با هر دو تم */
.private-teaser-section .btn-outline {
    color: var(--text-main);
    border-color: var(--border-color);
}
.private-teaser-section .btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.teaser-images {
    position: relative;
    height: 420px;
}
.teaser-img-wrapper {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    transition: transform .4s ease;
}
.teaser-img-wrapper:nth-child(1) { top: 0; left: 10%; z-index: 1; }
.teaser-img-wrapper:nth-child(2) { top: 40px; left: 35%; z-index: 2; }
.teaser-img-wrapper:nth-child(3) { top: 80px; right: 5%; z-index: 3; }
.teaser-images:hover .teaser-img-wrapper { transform: rotate(0deg) !important; }
.teaser-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(.85);
}
.teaser-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,.9);
    background: rgba(0,0,0,.15);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 35px 25px;
    background: var(--bg-card);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.feature-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-main); }
.feature-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.7; }

/* CTA بهبود یافته */
.cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}
.cta-actions .btn { min-width: 180px; justify-content: center; }

/* Section spacing عمومی */
.section { padding: 70px 20px; }
.section-header { text-align: center; margin-bottom: 45px; }
.section-title { font-size: 2rem; margin-bottom: 10px; color: var(--text-main); }
.section-title .highlight { color: var(--primary-color); }
.section-desc { color: var(--text-muted); font-size: 1rem; }
.section-footer { text-align: center; margin-top: 35px; }
.empty-text { text-align: center; color: var(--text-muted); padding: 30px; }
.container { max-width: 1200px; margin: 0 auto; }

/* ریسپانسیو */
@media (max-width: 900px) {
    .teaser-wrapper { grid-template-columns: 1fr; }
    .teaser-images { height: 340px; margin-top: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .home-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-number { font-size: 1.8rem; }
    .section { padding: 50px 15px; }
    .section-title { font-size: 1.5rem; }
    .teaser-content h2 { font-size: 1.4rem; }
    .teaser-img-wrapper { width: 140px; height: 200px; }
    .home-gallery-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .btn { width: 100%; }
}