/* Fixed Header System - Menu Bar + Banner + Disclaimer */

/* ============================================================
   FIXED HEADER WRAPPER - Sticky at top of page
   ============================================================ */

.fixed-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure all sections have same max-width and are centered */
.banner-section,
.disclaimer-section,
.menu-bar-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   MENU BAR SECTION - Now on top with sky blue background
   ============================================================ */

.menu-bar-section {
    background: #87CEEB; /* Match the sky blue from banner */
    border: none; /* No border to blend seamlessly with banner */
}

.menu-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: white;
}

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

.menu-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Menu buttons - About button with outline style */
.menu-btn {
    background: transparent;
    color: white;
    border: 2px solid #87CEEB; /* Same as background, creates outline effect */
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.menu-btn:active {
    transform: scale(0.95);
}

/* Search container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 200px;
    padding: 6px 32px 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
    color: #999;
}

.clear-search-btn {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.clear-search-btn:hover {
    color: #333;
}

/* ============================================================
   BANNER SECTION - No changes needed, just wrapped
   ============================================================ */

.banner-section {
    /* Banner styles already defined in banner-core.css */
    /* Removed top border to blend with menu bar */
}

/* ============================================================
   DISCLAIMER SECTION - Emphatic warning style
   ============================================================ */

.disclaimer-section {
    background: white;
    border: 3px solid #dc3545;
    border-top: none; /* Seamless with banner */
    padding: 16px 20px;
    text-align: center;
}

.disclaimer-warning {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
    line-height: 1.3;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.disclaimer-subtitle {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-family: 'Georgia', serif;
}

/* ============================================================
   MAIN CONTENT - Adjusted for fixed header
   ============================================================ */

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results a {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
}

/* ============================================================
   ABOUT MODAL
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #333;
    border-radius: 8px;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

#aboutText {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

#aboutText h1, #aboutText h2, #aboutText h3 {
    color: #667eea;
    margin-top: 1em;
}

#aboutText p {
    margin-bottom: 1em;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media screen and (max-width: 768px) {
    .disclaimer-warning {
        font-size: 18px;
    }

    .disclaimer-subtitle {
        font-size: 12px;
    }

    .menu-bar-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }

    .menu-left,
    .menu-right {
        width: 100%;
        justify-content: center;
    }

    .menu-left {
        flex-wrap: wrap;
    }

    .search-input {
        width: 150px;
    }

    .menu-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .modal-content {
        margin: 5% auto;
        padding: 20px;
        max-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .disclaimer-section {
        padding: 12px 15px;
    }

    .disclaimer-warning {
        font-size: 16px;
    }

    .disclaimer-subtitle {
        font-size: 11px;
    }

    .search-input {
        width: 120px;
        font-size: 12px;
    }
}