﻿/* ============================================
           CHEMISTRY LANDING — شیمی‌آموز
           ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    direction: rtl;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
           HEADER
           ============================================ */
.chem-header {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #003366, #0a4d8c);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 40px rgba(0, 51, 102, 0.15);
    position: relative;
    overflow: hidden;
}

    .chem-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -20%;
        width: 60%;
        height: 200%;
        background: radial-gradient(circle, rgba(244, 180, 0, 0.06), transparent 60%);
        pointer-events: none;
        animation: floatBg 20s ease-in-out infinite;
    }

@keyframes floatBg {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, 30px) scale(1.05);
    }
}

.chem-header .header-icon {
    width: 80px;
    height: 80px;
    background: rgba(244, 180, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F4B400;
    font-size: 2.5rem;
    margin: 0 auto 16px;
    border: 2px solid rgba(244, 180, 0, 0.2);
    position: relative;
    z-index: 2;
}

.chem-header h1 {
    font-weight: 900;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

    .chem-header h1 span {
        color: #F4B400;
    }

.chem-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.9;
}

.chem-header .header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

    .chem-header .header-stats .stat {
        text-align: center;
    }

        .chem-header .header-stats .stat .number {
            font-size: 1.6rem;
            font-weight: 800;
            color: #F4B400;
            display: block;
        }

        .chem-header .header-stats .stat .label {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.6);
        }

/* ============================================
           BREADCRUMB
           ============================================ */
.breadcrumb-section {
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .breadcrumb-section a {
        color: #003366;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .breadcrumb-section a:hover {
            color: #F4B400;
        }

    .breadcrumb-section .separator {
        color: #d1d5db;
    }

    .breadcrumb-section .current {
        color: #6b7280;
        font-size: 0.9rem;
    }

/* ============================================
           FEATURES
           ============================================ */
.chem-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.chem-feature {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

    .chem-feature:hover {
        transform: translateY(-6px);
        border-color: #F4B400;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    .chem-feature .feature-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        margin: 0 auto 12px;
        color: #fff;
    }

        .chem-feature .feature-icon.purple {
            background: linear-gradient(135deg, #7e56c6, #5a3a9e);
        }

        .chem-feature .feature-icon.green {
            background: linear-gradient(135deg, #24c06d, #1a9e58);
        }

        .chem-feature .feature-icon.gold {
            background: linear-gradient(135deg, #F4B400, #d49d00);
        }

        .chem-feature .feature-icon.blue {
            background: linear-gradient(135deg, #1fbcf3, #0e8fc7);
        }

        .chem-feature .feature-icon.red {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

        .chem-feature .feature-icon.orange {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }

    .chem-feature h4 {
        font-weight: 700;
        color: #003366;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .chem-feature p {
        font-size: 0.85rem;
        color: #6b7280;
        margin: 0;
        line-height: 1.7;
    }

/* ============================================
           CTA / START BUTTON
           ============================================ */
.chem-cta {
    text-align: center;
    padding: 30px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

    .chem-cta .cta-text {
        font-size: 1rem;
        color: #6b7280;
        margin-bottom: 16px;
        line-height: 1.8;
    }

        .chem-cta .cta-text i {
            color: #F4B400;
        }

.btn-start-chem {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #F4B400, #d49d00);
    color: #003366;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 4px 25px rgba(244, 180, 0, 0.3);
    text-decoration: none;
}

    .btn-start-chem:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 45px rgba(244, 180, 0, 0.4);
        color: #003366;
        text-decoration: none;
    }

    .btn-start-chem:active {
        transform: translateY(0) scale(0.97);
    }

    .btn-start-chem i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .btn-start-chem:hover i {
        transform: translateX(-4px);
    }

/* ============================================
           RESPONSIVE
           ============================================ */
@media (max-width: 992px) {
    .chem-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .chem-header {
        padding: 30px 16px 25px;
        border-radius: 14px;
    }

        .chem-header h1 {
            font-size: 1.6rem;
        }

        .chem-header p {
            font-size: 0.95rem;
        }

        .chem-header .header-icon {
            width: 60px;
            height: 60px;
            font-size: 1.8rem;
        }

        .chem-header .header-stats {
            gap: 20px;
        }

            .chem-header .header-stats .stat .number {
                font-size: 1.3rem;
            }

    .chem-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .chem-feature {
        padding: 18px 14px;
    }

        .chem-feature .feature-icon {
            width: 44px;
            height: 44px;
            font-size: 1.2rem;
        }

        .chem-feature h4 {
            font-size: 0.9rem;
        }

        .chem-feature p {
            font-size: 0.8rem;
        }

    .chem-cta {
        padding: 20px 16px;
    }

        .chem-cta .cta-text {
            font-size: 0.9rem;
        }

    .btn-start-chem {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .breadcrumb-section {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .chem-header h1 {
        font-size: 1.2rem;
    }

    .chem-header .header-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .chem-header .header-stats {
        gap: 12px;
    }

        .chem-header .header-stats .stat .number {
            font-size: 1.1rem;
        }

        .chem-header .header-stats .stat .label {
            font-size: 0.65rem;
        }

    .chem-features {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .chem-feature {
        padding: 14px 12px;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: right;
    }

        .chem-feature .feature-icon {
            width: 40px;
            height: 40px;
            font-size: 1rem;
            margin: 0;
            flex-shrink: 0;
        }

        .chem-feature .feature-content {
            flex: 1;
        }

        .chem-feature h4 {
            font-size: 0.85rem;
            margin-bottom: 0;
        }

        .chem-feature p {
            font-size: 0.75rem;
        }

    .btn-start-chem {
        font-size: 0.9rem;
        padding: 12px 24px;
    }

    .breadcrumb-section {
        font-size: 0.7rem;
        padding: 8px 12px;
        gap: 6px;
    }

        .breadcrumb-section .separator {
            display: none;
        }
}

/* ============================================
           SCROLLBAR
           ============================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: #F4B400;
    border-radius: 10px;
}
