/* ============================================
   NOTICE BAR STYLES
   ============================================ */

/* -------- NOTICE BAR -------- */
.notice-bar {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d1f3c 100%);
    color: #ffffff;
    padding: 0;
    position: fixed;  /* ← CHANGED from relative to fixed */
    top: 0;           /* ← ADDED - sticks to top */
    left: 0;          /* ← ADDED - sticks to left */
    right: 0;         /* ← ADDED - full width */
    z-index: 1000;
    border-bottom: 2px solid rgba(248, 222, 126, 0.25);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    overflow: hidden;
}

/* Left decorative glow */
.notice-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, rgba(248, 222, 126, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Right decorative glow */
.notice-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(270deg, rgba(248, 222, 126, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* -------- HAMBURGER BUTTON -------- */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 8px;
    gap: 4px;
    transition: all 0.3s ease;
    margin: 4px 6px 4px 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hamburger-btn:hover {
    background: rgba(248, 222, 126, 0.12);
    border-color: rgba(248, 222, 126, 0.2);
    transform: scale(1.03);
}

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

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #F8DE7E;
    border-radius: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger active state (X) */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

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

/* -------- NOTICE WRAPPER (scroll container) -------- */
.notice-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding: 6px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Fade masks on edges */
.notice-wrapper::before,
.notice-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 30px;
    z-index: 5;
    pointer-events: none;
}

.notice-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #0a1628 0%, transparent 100%);
}

.notice-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, #0a1628 0%, transparent 100%);
}

/* -------- NOTICE CONTENT (scrolling) -------- */
.notice-content {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    padding: 0 20px;
    animation: scrollNotices 28s linear infinite;
    will-change: transform;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
}

/* Pause on hover */
.notice-bar:hover .notice-content {
    animation-play-state: paused;
}

/* -------- SCROLL ANIMATION -------- */
@keyframes scrollNotices {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* -------- NOTICE ITEMS -------- */
.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    flex-shrink: 0;
}

.notice-item .icon {
    font-size: 16px;
    flex-shrink: 0;
}

.notice-item .label {
    color: #F8DE7E;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.notice-item .text {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

/* -------- LINKS IN NOTICE -------- */
.notice-item a,
.notice-content a {
    color: #F8DE7E;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.notice-item a:hover,
.notice-content a:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
    text-shadow: 0 0 20px rgba(248, 222, 126, 0.2);
}

.highlight-link {
    color: #F8DE7E !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(248, 222, 126, 0.3) !important;
}

.highlight-link:hover {
    border-bottom-color: #ffd700 !important;
}

/* -------- SEPARATOR -------- */
.notice-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 18px;
    font-weight: 100;
    flex-shrink: 0;
    padding: 0 2px;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .notice-content {
        font-size: 12.5px;
        gap: 16px;
        padding: 0 14px;
        animation-duration: 22s;
    }

    .hamburger-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 8px 6px;
        margin: 3px 4px 3px 6px;
    }

    .hamburger-line {
        width: 18px;
        height: 2px;
    }

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

    .notice-item .label {
        font-size: 11px;
    }
    .notice-item .icon {
        font-size: 14px;
    }
    .notice-separator {
        font-size: 14px;
    }
    .notice-wrapper::before,
    .notice-wrapper::after {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .notice-content {
        font-size: 11px;
        gap: 12px;
        padding: 0 10px;
        animation-duration: 18s;
    }

    .hamburger-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 6px 5px;
        margin: 2px 3px 2px 4px;
        border-radius: 6px;
    }

    .hamburger-line {
        width: 16px;
        height: 2px;
    }
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(4.5px) rotate(45deg);
    }
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    .notice-item .label {
        font-size: 10px;
    }
    .notice-item .icon {
        font-size: 12px;
    }
    .notice-separator {
        font-size: 12px;
    }
    .notice-wrapper::before,
    .notice-wrapper::after {
        width: 14px;
    }
}

/* For very long content, ensure animation works */
@media (max-width: 400px) {
    .notice-content {
        animation-duration: 15s;
    }
}
