/* =================== SMOOTH LOGO LOAD =================== */
.site-logo {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.site-logo.loaded {
    opacity: 1;
}

/* =================== VARIABLES =================== */
:root {
    /* Colors now come from dynamic-theme.css (Admin controlled) */
    
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
    --section-bg-dark: #1e293b;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: 0.3s ease;
    
    /* Spacing System (8px grid) */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    
    /* Common Use Cases */
    --page-padding: 32px;
    --section-margin: 32px;
    --card-padding: 20px;
    --element-gap: 16px;

    /* Navbar Height Variable */
    --public-navbar-height: 72px;
}

/* =================== RESET =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =================== NAVBAR =================== */
.navbar {
    position: fixed;
    top: var(--navbar-top, 0);
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-navbar, 9998);
    border-bottom: 1px solid var(--border);
    transition: top 0.4s ease, margin-top 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Static Navbar - Scrolls with page */
.navbar.navbar-static {
    position: relative !important;
    top: auto !important;
}

/* Shadow variations */
.navbar.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

.navbar.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.navbar.shadow-lg {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-bottom: none;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.navbar-logo i {
    font-size: 28px;
}

.navbar-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.navbar-auth {
    display: flex;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

.navbar-mobile {
    display: none;
    background: white;
    border-top: 1px solid var(--border);
    padding: 20px;
}

.navbar-mobile.show {
    display: block;
}

.mobile-link {
    display: block;
    padding: 12px 0;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* =================== BUTTONS =================== */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 109, 183, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* =================== FOOTER =================== */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 24px 24px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
    .navbar-menu,
    .navbar-auth {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}