/* ============================================
   HOME.CSS - استایل صفحه اصلی
   ============================================ */

/* ===== HERO SLIDER ===== */
.hero-slider {
    width: 100%;
    height: 90vh;
    min-height: 500px;
    position: relative;
}
.hero-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}
.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.hero-slider .slide-content h2 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero-slider .slide-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* ===== SLIDE BADGE ===== */
.slide-badge {
    display: inline-block;
    background: rgba(201, 168, 124, 0.2);
    border: 1px solid rgba(201, 168, 124, 0.3);
    color: #c9a87c;
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

/* ===== SLIDE BUTTON ===== */
.btn-slide {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 32px;
    background: #c9a87c;
    color: #0a0a14;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(201, 168, 124, 0.4);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
}
.swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* ===== HEADER DOWNLOAD BUTTON ===== */
.nav-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #c9a87c, #f0d6a8);
    color: #0a0a14 !important;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(201, 168, 124, 0.3);
}

.nav-download:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(201, 168, 124, 0.5);
    background: linear-gradient(135deg, #dbb88a, #f5e0b8);
}

.nav-download i {
    font-size: 0.9rem;
}

/* ===== CATEGORIES ===== */
.categories-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
}
.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(201, 168, 124, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.category-card .category-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #14141f;
    position: relative;
}
.category-card .category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.category-card:hover .category-image-wrapper img {
    transform: scale(1.05);
}

.category-card .category-info {
    padding: 16px 16px 20px;
}
.category-card .category-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.category-card .category-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.category-card .category-info .count {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: rgba(201, 168, 124, 0.1);
    padding: 2px 14px;
    border-radius: 50px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    background: rgba(201, 168, 124, 0.1);
    border: 1px solid rgba(201, 168, 124, 0.15);
    color: var(--color-primary);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.section-title .highlight {
    background: linear-gradient(135deg, #c9a87c, #f0d6a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.download-text {
    flex: 1;
    min-width: 280px;
}
.download-text .section-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e8d5b8;
}
.download-text h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.download-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}
.download-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.download-text ul li {
    padding: 6px 0;
    font-size: 1rem;
    opacity: 0.85;
}
.download-text ul li::before {
    content: '✅ ';
    color: #27ae60;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: var(--color-primary);
    color: #0a0a14;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(201, 168, 124, 0.3);
    border: none;
    cursor: pointer;
}
.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(201, 168, 124, 0.5);
}

.version-info {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-top: 10px;
}

.download-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.download-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: #0a0a12;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 50px 0 25px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 35px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 300px;
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social a:hover {
    background: #c9a87c;
    color: #0a0a14;
    transform: translateY(-3px);
}

.footer-col h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: #c9a87c;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
}

.footer-enamad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-enamad a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-enamad a:hover {
    transform: scale(1.05);
}

.footer-enamad img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-slider .slide-content h2 {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }
    .hero-slider .slide-content h2 {
        font-size: 2.2rem;
    }
    .hero-slider .slide-content p {
        font-size: 1rem;
    }
    .slide-badge {
        font-size: 0.7rem;
        padding: 3px 14px;
    }
    .btn-slide {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }
    .category-card .category-image-wrapper {
        height: 120px;
    }
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    .download-text ul {
        text-align: right;
        padding-right: 20px;
    }
    .download-text h2 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-enamad {
        gap: 12px;
    }
    .footer-enamad img {
        height: 45px;
    }
    
    /* دکمه دانلود در هدر برای موبایل */
    .nav-download {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    .nav-download i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-slider .slide-content h2 {
        font-size: 1.6rem;
    }
    .btn-slide {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    .category-card .category-image-wrapper {
        height: 100px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* دکمه دانلود در هدر برای موبایل کوچک */
    .nav-download {
        padding: 4px 10px;
        font-size: 0.65rem;
        gap: 4px;
    }
    .nav-download i {
        font-size: 0.65rem;
    }
}