/* ============================================
   HEADER STYLES - DARK THEME
   Matching Bento Grid Design
   ============================================ */

/* CSS Variables (should match main styles) */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-full: 9999px;
    --transition-base: 300ms ease;
}

/* Main Header */
.main-header {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    width: 100%;
}

.main-header.navbar-hide {
    transform: translateY(-100%);
}

.main-header.navbar-show {
    transform: translateY(0);
}

/* Scrolled State */
.main-header.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.logo-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.logo-link:hover::after {
    width: 100%;
}

.logo-link:hover {
    transform: scale(1.02);
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter var(--transition-base);
}

.logo-link:hover .header-logo {
    filter: brightness(1.2);
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Social Links in Header */
.header-social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-700);
    position: relative;
    overflow: hidden;
}

.header-social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.header-social-icon:hover::before {
    opacity: 1;
}

.header-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: transparent;
    color: var(--white);
}

/* Facebook specific color */
.header-social-icon.facebook:hover {
    background: #1877f2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Instagram specific gradient */
.header-social-icon.instagram:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    box-shadow: 0 8px 20px rgba(131, 58, 180, 0.4);
}

/* YouTube specific color */
.header-social-icon.youtube:hover {
    background: #ff0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* WhatsApp specific color */
.header-social-icon.whatsapp:hover {
    background: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Divider */
.nav-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--gray-600), transparent);
    margin: 0 0.25rem;
}

/* Home Button Styles - Now matches CTA style */
.home-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-success);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.home-btn:hover::before {
    left: 100%;
}

.home-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.home-btn i {
    font-size: 1rem;
    transition: transform var(--transition-base);
}

.home-btn:hover i {
    transform: scale(1.1);
}

.home-btn span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Register Button (Alternative Style) */
.register-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.register-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets */
@media (max-width: 992px) {
    .nav-actions {
        gap: 1rem;
    }

    .header-social-links {
        gap: 0.4rem;
    }

    .header-social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .home-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem 0;
    }

    .navbar-simple {
        padding: 0.25rem 0;
    }

    .header-logo {
        height: 42px;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    /* Show only 2 social icons on tablet */
    .header-social-links {
        gap: 0.35rem;
    }

    .header-social-icon.facebook,
    .header-social-icon.youtube {
        display: none;
    }

    .nav-divider {
        height: 25px;
        margin: 0 0.1rem;
    }

    .home-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .main-header {
        padding: 0.4rem 0;
    }

    .header-logo {
        height: 38px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .header-social-links {
        display: none;
        /* Hide all social links on mobile */
    }

    .nav-divider {
        display: none;
    }

    .home-btn {
        padding: 0.6rem 1rem;
        border-radius: var(--radius-md);
    }

    .home-btn span {
        display: none;
    }

    .home-btn i {
        font-size: 1.15rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .header-logo {
        height: 34px;
    }

    .home-btn {
        padding: 0.5rem 0.9rem;
    }
}

/* Optional: Animation on scroll */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-header {
    animation: headerSlideDown 0.5s ease forwards;
}

/* Optional: Glassmorphism effect enhancement */
@supports (backdrop-filter: blur(20px)) {
    .main-header {
        background: rgba(17, 24, 39, 0.85);
    }
}