/* استایل‌های هدر آموزشگاه کیمیا */

.header-top {
    background: linear-gradient(135deg, #5C4B8B 0%, #7B68EE 100%);
    border-top: 3px dotted #8A7CC8;
    padding: 20px 0;
}

.header-container {
    background: white;
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 1200px;
    width: 95%;
}

.logo-text {
    color: #5C4B8B;
    font-weight: bold;
    font-size: 1.4rem;
}

.search-container {
    position: relative;
    max-width: 400px;
}

.search-input {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 25px;
    padding: 10px 50px 10px 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #5C4B8B;
    box-shadow: 0 0 0 3px rgba(92, 75, 139, 0.1);
}

.search-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #20C997;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    background: #1BA085;
    transform: translateY(-50%) scale(1.05);
}

.register-btn {
    background: white;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.register-btn:hover {
    background: #F8F9FA;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-analysis-btn {
    background: linear-gradient(135deg, #20C997 0%, #17A2B8 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(32, 201, 151, 0.3);
}

.video-analysis-btn:hover {
    background: linear-gradient(135deg, #1BA085 0%, #138496 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
}

.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: #F8F9FA;
    color: #5C4B8B;
}

.nav-bar {
    background: #F0F0F0;
    padding: 20px 0;
    margin-top: 0;
}

.nav-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.nav-link-custom {
    color: #666;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nav-link-custom:hover {
    color: #5C4B8B;
    background: rgba(92, 75, 139, 0.1);
    transform: translateY(-2px);
}

.nav-link-custom.active {
    color: #5C4B8B;
    font-weight: bold;
}

.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: #5C4B8B;
    border-radius: 2px;
}

.nav-icon {
    font-size: 1.1rem;
    margin-left: 5px;
}


.main-title {
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    margin: 30px 0 20px 0;
}

.title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.separator-line {
    height: 2px;
    background: #333;
    flex: 1;
    max-width: 200px;
}

.separator-icon {
    margin: 0 15px;
    color: #333;
}

/* انیمیشن‌های اضافی */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-container {
    animation: fadeInDown 0.6s ease-out;
}

.nav-link-custom {
    animation: fadeInDown 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-container {
        width: 98%;
        padding: 15px 20px;
    }
    
    .nav-container {
        width: 98%;
    }
}

@media (max-width: 768px) {
    .header-container {
        width: 95%;
        padding: 15px 20px;
    }
    
    .nav-container {
        width: 95%;
    }
    
    .search-container {
        max-width: 250px;
    }
    
    .nav-link-custom {
        padding: 8px 10px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .nav-icon {
        font-size: 1rem;
        margin-left: 3px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .register-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .video-analysis-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        margin: 0 5px;
        padding: 8px 12px;
    }
    
    .search-container {
        max-width: 200px;
    }
    
    .nav-link-custom {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .main-title {
        font-size: 1.3rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .register-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .video-analysis-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}
