body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #1c1e21;
}

header {
    background-color: #000000;
    color: #F1B82D;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-bottom: 5px solid #F1B82D;
}

header h1 {
    margin: 0;
    font-size: 2.8rem; /* Increased from 2.2rem for more impact */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px; /* Slightly more space between letters for a pro look */
    color: #F1B82D;
    line-height: 1.1;
    
    /* THE VARSITY SHADOW:
       1. Hard black outline for clarity
       2. Gold 'glow' to bridge the colors
       3. Deep black drop shadow for 3D depth
    */
    text-shadow: 
        1px 1px 0px #000, 
        2px 2px 0px #000,
        3px 3px 0px #F1B82D, 
        4px 4px 0px rgba(0, 0, 0, 0.5),
        6px 6px 10px rgba(0, 0, 0, 0.8);
}

/* Let's also give the 'Detecting time' text a little more breathing room now */
#current-time {
    margin-top: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.8;
}

#current-time {
    margin-top: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

main {
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    font-size: 1.1rem;
    color: #555;
    text-transform: uppercase;
    font-weight: bold;
}

.deal-card {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border-left: 6px solid #000000;
}

.deal-card.upcoming {
    border-left: 6px solid #888;
    background-color: #fafafa;
}

.deal-card h2 { margin: 0 0 8px 0; font-size: 1.4rem; }

.time-badge {
    background-color: #F1B82D;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 10px;
    text-transform: uppercase;
}

.time-badge.gray { background-color: #eee; color: #666; }

.directory-card {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #ddd;
}

.directory-name { font-weight: bold; }
.directory-days { font-size: 0.75rem; color: #777; }

.submission-card {
    background: #000; /* Mizzou Black */
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.submission-card p {
    margin-bottom: 20px;
    color: #F1B82D; /* Mizzou Gold */
    font-weight: bold;
}

.map-link {
    display: inline-block;
    padding: 5px 0; /* Makes the "tap target" taller for thumbs */
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid #F1B82D; /* Thicker line looks better on mobile */
}

#deal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.filter-container {
    display: flex;
    gap: 8px;
    overflow-x: auto; /* Allows scrolling on small phones */
    padding: 10px 0;
    margin-bottom: 10px;
}

.share-btn {
    background: transparent;
    border: 1px solid #F1B82D;
    color: #F1B82D;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.2s;
}

#day-nav-container {
    justify-content: space-between;
    padding: 5px 0;
    border-top: 1px solid #333;
    margin-top: 5px;
}

.day-nav-btn {
    background: #222;
    color: #F1B82D;
    border: none;
    padding: 8px 5px;
    font-size: 0.7rem;
    font-weight: bold;
    flex: 1;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
}

.day-nav-btn:not(:last-child) {
    border-right: 1px solid #333;
}

.share-btn:hover {
    background: #F1B82D;
    color: #000;
}

.filter-btn {
    background: transparent;
    color: #F1B82D;
    border: 1px solid #F1B82D;
    padding: 6px 15px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
}

.filter-btn.active {
    background: #F1B82D;
    color: #000;
}

.tag-badge {
    background: #222; /* High contrast background */
    color: #F1B82D; /* Mizzou Gold */
    border: 1px solid #F1B82D;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#deal-form input {
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

#deal-form button {
    background-color: #F1B82D;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}

#deal-form button:hover {
    transform: scale(1.02);
    background-color: #ffd26b;
}

.day-header {
    background-color: #000;
    color: #F1B82D;
    padding: 8px 15px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block; /* Makes the black background only as wide as the text */
}

.directory-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #000;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.search-container {
    margin-bottom: 15px;
}

#directory-search {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't break the width */
    outline: none;
    transition: border-color 0.2s;
}

#directory-search:focus {
    border-color: #F1B82D; /* Mizzou Gold focus ring */
}

.toggle-btn.active {
    background: #000;
    color: #F1B82D;
}

.map-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #F1B82D;
}

.map-link:hover {
    color: #F1B82D;
}

/* For the A-Z view, we'll want to show the day abbreviations */
.day-tags {
    font-size: 0.7rem;
    color: #777;
    margin-top: 4px;
    font-style: italic;
}

.directory-details {
    font-size: 0.85rem;
    color: #555;
    margin-top: 2px;
}

.directory-time {
    text-align: right;
    font-size: 0.85rem;
    font-weight: bold;
    color: #000;
    min-width: 80px;
}

/* Let's make the directory cards a bit slimmer now that there are more of them */
.directory-card {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 6px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #F1B82D;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    color: #888;
    font-size: 0.8rem;
}

#update-date { font-weight: bold; color: #555; margin-bottom: 5px; }