/* ============================================================
   استایل‌های اختصاصی صفحه اصلی
   ============================================================ */

/* Slideshow Background */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 38px;
    color: var(--text-heading);
    margin-bottom: 12px;
    text-shadow: 0 0 30px var(--shadow-color);
    transition: color 0.3s ease;
}

.hero h2 span {
    color: var(--text-heading-span);
    transition: color 0.3s ease;
}

.hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 8px auto;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.hero .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* Games Section */
.games-section {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.games-section h3 {
    text-align: center;
    font-size: 30px;
    color: var(--text-heading);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.games-section .section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 20px 20px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.4s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: 0 12px 40px var(--shadow-color);
    background: var(--bg-card);
}

.game-card .game-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.game-card .game-img:hover {
    transform: scale(1.02);
}

.game-card h4 {
    color: var(--text-heading);
    font-size: 20px;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    flex: 1;
}

.game-card .btn-card {
    display: inline-block;
    padding: 8px 28px;
    background: var(--btn-primary-bg);
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid var(--badge-border);
    margin-top: auto;
    align-self: center;
}

.game-card .btn-card:hover {
    background: var(--btn-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* Spotlight (Miyabi) */
.spotlight {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.spotlight-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.spotlight-text {
    flex: 1;
    min-width: 260px;
}

.spotlight-text h3 {
    font-size: 30px;
    color: var(--text-heading);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.spotlight-text h3 span {
    color: var(--text-heading-span);
    transition: color 0.3s ease;
}

.spotlight-text .badge {
    display: inline-block;
    background: var(--badge-bg);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--badge-border);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.spotlight-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.spotlight-text .btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--btn-primary-bg);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid var(--badge-border);
}

.spotlight-text .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-color);
    background: var(--btn-primary-hover);
}

.spotlight-image {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.spotlight-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 15px 50px var(--shadow-color);
    border: 2px solid var(--border-light);
    transition: all 0.4s;
}

.spotlight-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 70px var(--shadow-color);
}

/* Responsive Home */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    .spotlight-inner {
        flex-direction: column;
        text-align: center;
    }
    .spotlight-text h3 {
        font-size: 26px;
    }
    .spotlight-image {
        max-width: 260px;
    }
    .game-card {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 22px;
    }
    .hero p {
        font-size: 13px;
    }
    .game-card {
        padding: 16px 14px;
        min-height: 240px;
    }
    .game-card .game-img {
        height: 110px;
    }
    .spotlight-text h3 {
        font-size: 22px;
    }
    .spotlight-image {
        max-width: 200px;
    }
}