/* ============================================
   LEFT HAMBURGER MENU NAVIGATION
   Integrated with Notice Bar
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Inspired by original altar.html colors */
:root {
    /* Primary Color Scheme (from original: #0a4d68, #088395) */
    --primary-dark: #0a4d68;
    --primary-medium: #088395;
    --primary-light: #0f6b8c;
    --primary-gradient: linear-gradient(135deg, #0a4d68, #088395);
    --primary-gradient-light: linear-gradient(135deg, #0f6b8c, #0a9abe);
    
    /* Accent Colors */
    --accent-gold: #e8c07d;
    --accent-warm: #ff8e53;
    --accent-red: #ff6b6b;
    
    /* Background & Text */
    --bg-dark: #0a2f3f;
    --bg-overlay: rgba(10, 45, 55, 0.95);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --text-dim: rgba(255, 255, 255, 0.7);
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --glow-blue: 0 0 20px rgba(8, 131, 149, 0.4);
    
    /* Spacing */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

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

/* ===== NOTICE BAR WITH HAMBURGER INSIDE - REDUCED HEIGHT ===== */
.notice-bar {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    text-align: center;
    padding: 6px 16px;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 997;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: pulseNotice 2s infinite;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
}

.notice-bar a {
    color: white;
    text-decoration: none;
    display: inline-block;
    flex: 1;
    text-align: center;
}

.notice-bar a:hover {
    text-decoration: underline;
}

@keyframes pulseNotice {
    0% { background: linear-gradient(135deg, #ff6b6b, #ff8e53); }
    50% { background: linear-gradient(135deg, #ff5252, #ff7a33); }
    100% { background: linear-gradient(135deg, #ff6b6b, #ff8e53); }
}

/* ===== HAMBURGER BUTTON (Inside Notice Bar - Left Side) - REDUCED HEIGHT ===== */
.hamburger-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1002;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.hamburger-btn:active {
    transform: scale(0.98);
}

/* Hamburger Icon Lines - REDUCED SIZE */
.hamburger-line {
    width: 20px;
    height: 2.5px;
    background-color: white;
    border-radius: 4px;
    transition: all var(--transition-normal);
}

/* Animation for open state */
.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== OVERLAY (Dark background when menu open) ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 45, 55, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SIDE MENU (Slides from Left) ===== */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(145deg, var(--primary-dark), var(--bg-dark));
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left var(--transition-bounce);
    box-shadow: var(--shadow-lg);
    border-right: 1px solid rgba(232, 192, 125, 0.2);
}

.side-menu.active {
    left: 0;
}

/* Custom Scrollbar */
.side-menu::-webkit-scrollbar {
    width: 5px;
}

.side-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.side-menu::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

/* ===== MENU HEADER ===== */
.menu-header {
    padding: 30px 24px;
    border-bottom: 1px solid rgba(232, 192, 125, 0.2);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Close button inside menu - RIGHT SIDE ONLY */
.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.menu-close-btn i {
    color: white;
    font-size: 1.2rem;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.menu-logo-img {
    height: 50px;
    width: auto;
}

.menu-logo-text {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.2rem;
    color: var(--accent-gold);
    line-height: 1.3;
}

.menu-header-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 15px;
    font-style: italic;
}

/* ===== NAVIGATION LINKS ===== */
.nav-menu-list {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Nav Link */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link-left i {
    width: 24px;
    font-size: 1.2rem;
    color: var(--accent-gold);
    transition: all var(--transition-normal);
}

.nav-link span:not(.chevron) {
    transition: transform var(--transition-normal);
}

.nav-link .chevron {
    font-size: 0.75rem;
    transition: transform var(--transition-normal);
    opacity: 0.7;
}

.nav-link:hover {
    background: rgba(232, 192, 125, 0.1);
    padding-left: 28px;
}

.nav-link:hover .nav-link-left i {
    transform: scale(1.1);
    color: var(--accent-warm);
}

.nav-link:hover span:not(.chevron) {
    transform: translateX(4px);
}

/* Special Buttons inside menu */
.nav-link.donate {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    margin: 12px 16px;
    border-radius: 50px;
    padding: 12px 20px;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
}

.nav-link.donate .nav-link-left {
    gap: 10px;
}

.nav-link.donate .nav-link-left i {
    color: white;
}

.nav-link.donate:hover {
    transform: translateY(-2px);
    padding-left: 20px;
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.5);
}

/* Newsletter Button with Hover Download Effect */
.nav-link.newsletter {
    background: linear-gradient(135deg, #05bfdb, #0a8c9e);
    margin: 12px 16px;
    border-radius: 50px;
    padding: 12px 20px;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(5, 191, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-link.newsletter .default-text,
.nav-link.newsletter .hover-text {
    transition: all 0.3s ease;
}

.nav-link.newsletter .default-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link.newsletter .hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.nav-link.newsletter:hover .default-text {
    opacity: 0;
    transform: translateY(5px);
}

.nav-link.newsletter:hover .hover-text {
    opacity: 1;
}

.nav-link.newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 191, 219, 0.5);
}

/* Dropdown Menu (Submenu) */
.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: max-height var(--transition-bounce);
}

.dropdown-menu.show {
    max-height: 500px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px 12px 56px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 450;
    transition: all var(--transition-normal);
    border-left: 3px solid transparent;
}

.dropdown-item i {
    font-size: 0.8rem;
    color: var(--accent-gold);
    opacity: 0.7;
}

.dropdown-item:hover {
    background: rgba(232, 192, 125, 0.1);
    color: white;
    padding-left: 60px;
    border-left-color: var(--accent-gold);
}

.dropdown-item:hover i {
    opacity: 1;
}

/* Active menu item indicator */
.nav-link.active {
    background: rgba(232, 192, 125, 0.15);
    border-right: 3px solid var(--accent-gold);
}

.nav-link.active .nav-link-left i {
    color: var(--accent-warm);
}

/* ===== MENU FOOTER ===== */
.menu-footer {
    padding: 24px;
    border-top: 1px solid rgba(232, 192, 125, 0.2);
    margin-top: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.menu-copyright {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.nav-item {
    animation: fadeInScale 0.4s ease backwards;
}

.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-item:nth-child(7) { animation-delay: 0.35s; }
.nav-item:nth-child(8) { animation-delay: 0.4s; }
.nav-item:nth-child(9) { animation-delay: 0.45s; }
.nav-item:nth-child(10) { animation-delay: 0.5s; }
.nav-item:nth-child(11) { animation-delay: 0.55s; }
.nav-item:nth-child(12) { animation-delay: 0.6s; }
.nav-item:nth-child(13) { animation-delay: 0.65s; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Desktop & Laptop */
@media (min-width: 769px) {
    .notice-bar {
        padding: 7px 20px;
        gap: 15px;
        font-size: 0.88rem;
    }
    
    .hamburger-btn {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }
    
    .hamburger-btn.open .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-btn.open .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .side-menu {
        max-width: 380px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .notice-bar {
        padding: 5px 10px;
        gap: 8px;
        font-size: 0.68rem;
    }
    
    .hamburger-btn {
        width: 34px;
        height: 34px;
        gap: 4px;
        border-radius: 8px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    .hamburger-btn.open .hamburger-line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }
    
    .hamburger-btn.open .hamburger-line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
    
    .side-menu {
        max-width: 85%;
    }
    
    .nav-link {
        padding: 14px 20px;
    }
    
    .dropdown-item {
        padding: 10px 20px 10px 48px;
    }
    
    .dropdown-item:hover {
        padding-left: 52px;
    }
    
    .menu-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    /* Newsletter hover text adjustments for mobile */
    .nav-link.newsletter .hover-text {
        font-size: 0.7rem;
        white-space: normal;
        text-align: center;
        width: 90%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .notice-bar {
        padding: 4px 8px;
        gap: 6px;
        font-size: 0.6rem;
    }
    
    .hamburger-btn {
        width: 30px;
        height: 30px;
        gap: 3px;
        border-radius: 7px;
    }
    
    .hamburger-line {
        width: 16px;
        height: 2px;
    }
    
    .menu-header {
        padding: 20px 16px;
    }
    
    .menu-logo-img {
        height: 40px;
    }
    
    .menu-close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    /* Newsletter button adjustments for small mobile */
    .nav-link.newsletter {
        padding: 10px 16px;
    }
    
    .nav-link.newsletter .hover-text {
        font-size: 0.65rem;
        width: 95%;
    }
}

/* ===== UTILITY ===== */

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Pulse animation for donate button */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(238, 90, 36, 0.6);
    }
}

.nav-link.donate {
    animation: subtlePulse 2s infinite;
}

/* Glow effect on hover for menu items */
.nav-link:hover {
    text-shadow: 0 0 5px rgba(232, 192, 125, 0.5);
}
