/* ==========================================
   PUBLIC HEADER FOR NON-LOGGED-IN USERS
   
   Layout Order (Left to Right):
   1. Brand Logo (Heart Icon + NioSpark)
   2. Navigation Links (Home, Services, Events, Counselling, Blog)
   3. Instagram Icon
   4. Guest Enquiry Button
   5. Login Button
   6. Sign Up Button
   7. Region Switcher (Currency Dropdown)
   ========================================== */

.public-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.public-header.sticky-top {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.brand-icon .fa-heart {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20% { transform: scale(1.05); }
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo:hover .brand-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.brand-logo:hover .brand-text {
    opacity: 0.9;
}

/* Navigation Links */
.public-header .nav-center {
    gap: 5px;
}

.public-header .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.public-header .nav-link:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.08);
}

.public-header .nav-link.active {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.12);
    font-weight: 600;
}

/* Instagram Social Link */
.social-link {
    color: #E4405F !important;
    font-size: 1.3rem !important;
    padding: 6px 12px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(228, 64, 95, 0.1) !important;
    transform: scale(1.1);
}

.social-link .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Guest Enquiry Button */
.btn-guest-enquiry {
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-right: 8px;
}

.btn-guest-enquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

/* Currency Dropdown */
.currency-dropdown-nav {
    margin-left: 8px;
}

.currency-toggle {
    color: #6b7280 !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    transition: all 0.3s ease;
}

.currency-toggle:hover {
    color: #667eea !important;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.currency-toggle .fa-globe {
    color: #667eea;
}

.currency-dropdown-menu {
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 0;
    margin-top: 8px;
}

.currency-dropdown-menu .dropdown-header {
    color: #667eea;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
}

.currency-dropdown-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.2s ease;
}

.currency-dropdown-menu .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

.currency-dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.currency-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Action Buttons */
.nav-actions {
    gap: 8px;
}

.btn-header-action {
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-header-action i {
    font-size: 0.9rem;
}

.btn-header-action.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-header-action.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-header-action.btn-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-header-action.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .public-header {
        padding: 8px 0;
    }
    
    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .public-header .navbar-collapse {
        background: white;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .public-header .nav-center,
    .public-header .nav-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .public-header .nav-item {
        width: 100%;
    }
    
    .public-header .nav-link {
        padding: 12px 16px !important;
    }
    
    .btn-header-action,
    .btn-guest-enquiry {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .social-link {
        width: 100%;
        text-align: center;
        padding: 12px !important;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .currency-dropdown-nav {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .currency-toggle {
        width: 100%;
        text-align: left;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 1.2rem;
    }
    
    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Active Page Highlighting */
body[data-page="home"] .nav-link[href="index.php"],
body[data-page="services"] .nav-link[href="services.php"],
body[data-page="events"] .nav-link[href="events.php"],
body[data-page="counselling"] .nav-link[href="counselling.php"],
body[data-page="blogs"] .nav-link[href="blogs.php"] {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.12);
    font-weight: 600;
}

/* Navbar Toggler */
.public-header .navbar-toggler {
    border: 2px solid #667eea;
    padding: 6px 10px;
    border-radius: 8px;
}

.public-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.public-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Hide public header when logged in */
body.two-level-header .public-header {
    display: none;
}

