:root {
    --neo-yellow: #FFCC00;
    --neo-light-yellow: #FFF8AD;
    --neo-gold: #E5B800;
    --neo-panel: #FFFFFF;
    --text-main: #333333;
    --link-color: #0066cc;
    --alert-accent: #cc0000;
    --daily-done: #2d7a2d;
}

* { box-sizing: border-box; }

body {
    font-family: "Verdana", "Geneva", sans-serif;
    margin: 0;
    color: var(--text-main);
    line-height: 1.4;
    background: url(https://sunnyneo.com/background/BG_greymeepit.gif);
}

/* --- HEADER --- */
header {
    background-color: var(--neo-yellow);
    background-image: radial-gradient(rgba(255,255,255,0.4) 1px, transparent 0);
    background-size: 30px 30px;
    padding: 20px;
    border-bottom: 4px solid var(--neo-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 2.5em;
    font-weight: 900;
    color: #333;
    text-decoration: none;
    font-style: italic;
    text-shadow: 2px 2px 0px #fff;
}

.logo span { color: #fff; text-shadow: 2px 2px 0px var(--neo-gold); }

.nst-display {
    font-size: 0.8em;
    font-weight: bold;
    background: rgba(255,255,255,0.3);
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    text-align: center;
    min-width: 220px;
}

/* --- SEARCH --- */
.search-strip {
    background: var(--neo-light-yellow);
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-bottom: 2px solid var(--neo-gold);
}

.search-strip input {
    flex: 1;
    max-width: 500px;
    padding: 8px;
    border: 1px solid var(--neo-gold);
    outline: none;
}

.search-strip button {
    padding: 8px 20px;
    background: var(--neo-gold);
    border: 1px solid #999;
    font-weight: bold;
    cursor: pointer;
}

/* --- LAYOUT --- */
.content-container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 10px;
}

/* Mobile First: Stacked */
.portal-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Desktop Fix */
@media (min-width: 900px) {
    .portal-grid {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 30px;
        align-items: start;
        margin-top: 20px;
    }
}

/* --- PANELS --- */
.panel { 
    background: #fff; 
    border: 2px solid var(--neo-gold); 
    border-radius: 10px; 
    overflow: hidden; 
    margin-bottom: 20px;
}

.panel-h { 
    background: var(--neo-yellow); 
    padding: 10px; 
    font-size: 0.9em; 
    font-weight: bold; 
    border-bottom: 2px solid var(--neo-gold); 
    text-align: center;
}

.panel-body { padding: 15px; }

/* --- ALERTS --- */
.alerts-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; 
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .alerts-flex {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

.alert-item strong { display: block; color: #666; font-size: 0.75em; text-transform: uppercase; }
.alert-value { color: var(--alert-accent); font-weight: bold; }

/* --- QUICK LINKS (The Fixed Buttons) --- */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px dashed var(--neo-gold);
}

.quick-links a {
    font-size: 0.7em;
    font-weight: bold;
    color: var(--link-color);
    text-decoration: none;
    background: var(--neo-light-yellow);
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid var(--neo-gold);
    transition: background 0.2s;
}

.quick-links a:hover {
    background: var(--neo-yellow);
    color: #333;
}

/* --- NEWS FEED --- */
.news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.news-item:last-child { border-bottom: none; margin-bottom: 0; }

.news-item img {
    width: 60px;
    height: 60px;
    border: 1px solid var(--neo-gold);
    border-radius: 5px;
    flex-shrink: 0;
}

.badge {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.badge.yippee   { background: #D4AF37 !important; border: 1px solid #B8860B; }
.badge.story    { background: #D53D8C !important; }
.badge.neo-news { background: #2A6EB4 !important; }

.news-item h2 { margin: 2px 0; font-size: 1.1em; color: #222; }
.news-item p { margin: 5px 0; font-size: 0.8em; color: #555; }

.news-link {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--link-color);
    text-decoration: none;
}

.news-link:hover { text-decoration: underline; }

/* --- DAILIES SIDEBAR --- */
.dailies-list {
    height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.daily-cat {
    font-size: 0.65em;
    font-weight: bold;
    background: #f9f9f9;
    padding: 5px;
    margin: 10px 0 5px;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
}

.daily-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.75em;
    align-items: center;
}

.daily-row a { color: var(--link-color); text-decoration: none; font-weight: bold; }
.daily-check { color: #ddd; font-weight: bold; }
.daily-row.visited a { color: #bbb; text-decoration: line-through; }
.daily-row.visited .daily-check { color: var(--daily-done); }

/* --- FOOTER & MISC --- */
footer { padding: 20px 0 40px 0; }

textarea {
    width: 100%;
    border: 1px solid var(--neo-gold);
    border-radius: 4px;
    padding: 8px;
}

textarea:focus {
    outline: none;
    border-color: var(--neo-yellow);
    box-shadow: 0 0 5px var(--neo-light-yellow);
}

.reset-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    cursor: pointer;
    font-size: 0.7em;
    font-weight: bold;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
}