/* Fixed Header System - Banner + Menu Bar (Menu bar now BELOW banner) */

/* ============================================================
   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,
.menu-bar-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   BANNER SECTION - Now on TOP
   ============================================================ */

.banner-section {
    /* Banner styles already defined in banner-core.css */
}

/* ============================================================
   MENU BAR SECTION - Now BELOW banner, seamless transition
   ============================================================ */

.menu-bar-section {
    background: #7CB342; /* Match the grass green from banner */
    border: none;
    border-top: none;     /* ← Add this line */
    border-bottom: 3px solid #558B2F; /* Match banner bottom border */
}

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

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

.menu-right {
    display: flex;
    align-items: center;     /* ← Back to center (horizontal alignment) */
    gap: 6px;
}

/* Menu buttons - styled for green background */
.menu-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

.search-input {
    width: 160px;  /* ← Change from 180px to 160px */
    padding: 6px 28px 6px 10px;  /* ← Changed from 5px to 6px top/bottom */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.4;  /* ← Add this if needed */
    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: 5px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

/* Date Picker */
.date-picker {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    width: 100px;
    padding-right: 20px;
}

.date-picker:hover {
    background: white;
    border-color: white;
}

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

.menu-disclaimer-wrapper {
    display: flex;
    flex-direction: column;   /* ← Stack lines vertically inside wrapper */
    align-items: flex-end;    /* ← Right-align text within wrapper */
    gap: 2px;
    line-height: 1.2;
}

.menu-disclaimer-line1 {
    font-size: 13px;
    color: #EE4B2B;
    opacity: 0.9;
    white-space: nowrap;
}

.menu-disclaimer-line2 {
    font-size: 10px;
    color: white;
    font-style: italic;
    opacity: 0.85;
    white-space: nowrap;
}

/* ============================================================
   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) {
    /* HIDE MENU BAR ENTIRELY ON MOBILE */
    .menu-bar-section {
        display: none;
    }

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

@media screen and (max-width: 480px) {
    .modal-content {
        margin: 3% auto;
        padding: 15px;
    }
}