/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, 'MS Sans Serif', Geneva, sans-serif;
    background-color: #008080;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23006666'/%3E%3C/svg%3E");
    min-height: 100vh;
    padding: 20px;
}

/* ====== BROWSER WINDOW CHROME ====== */
.browser-window {
    max-width: 900px;
    margin: 0 auto;
    background-color: #c0c0c0;
    border: 3px outset #dfdfdf;
    box-shadow: 2px 2px 0 #000;
}

.title-bar {
    background: linear-gradient(90deg, #000080 0%, #0000cd 50%, #000080 100%);
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar-text {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-controls button {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 2px outset #fff;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 10px;
}

.menu-bar {
    background: #c0c0c0;
    padding: 2px 4px;
    border-bottom: 1px solid #808080;
    font-size: 11px;
}

.menu-bar span {
    padding: 2px 8px;
    cursor: pointer;
}

.menu-bar span:hover {
    background: #000080;
    color: #fff;
}

.toolbar {
    background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
    padding: 4px;
    border-bottom: 2px groove #fff;
    display: flex;
    gap: 4px;
}

.toolbar button {
    background: linear-gradient(180deg, #dfdfdf 0%, #c0c0c0 50%, #a0a0a0 100%);
    border: 2px outset #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
}

.toolbar button:active {
    border-style: inset;
}

.address-bar {
    background: #c0c0c0;
    padding: 4px 8px;
    border-bottom: 2px groove #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.address-bar input {
    flex: 1;
    border: 2px inset #fff;
    padding: 2px 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #fff;
}

.content-frame {
    background: #fff;
    margin: 8px;
    border: 2px inset #808080;
    min-height: 500px;
}

.status-bar {
    background: #c0c0c0;
    padding: 3px 8px;
    font-size: 11px;
    border-top: 2px groove #fff;
    display: flex;
    gap: 10px;
}

.status-section {
    background: #fff;
    border: 1px inset #808080;
    padding: 1px 8px;
}

/* ====== SITE HEADER ====== */
.site-header {
    background: linear-gradient(180deg, #ffcc00 0%, #ff9900 50%, #ff6600 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 5px ridge #cc6600;
}

.site-header h1 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 56px;
    color: #000;
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        4px 4px 0 #808080;
    letter-spacing: 3px;
}

.site-header p {
    font-size: 16px;
    color: #800000;
    font-weight: bold;
    margin-top: 8px;
    text-transform: uppercase;
}

/* ====== SECTION NAV ====== */
.section-nav {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.section-nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid #444;
    transition: background 0.1s;
}

.section-nav a:first-child {
    border-left: 1px solid #444;
}

.section-nav a:hover {
    background: #800000;
}

/* ====== HOT NEWS STRIP ====== */
.hot-news-strip {
    background: #ffff00;
    padding: 8px 15px;
    text-align: center;
    border-top: 3px solid #ff0000;
    border-bottom: 3px solid #ff0000;
}

.hot-news-strip .blink-text {
    font-size: 13px;
    font-weight: bold;
    color: #cc0000;
    animation: blink 0.8s step-end infinite;
}

.hot-news-strip a {
    color: #000080;
    font-weight: bold;
    margin-left: 10px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ====== NEWS TICKER ====== */
.news-ticker {
    background: #000080;
    color: #00ff00;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow: hidden;
    border-top: 2px solid #0000cd;
    border-bottom: 2px solid #0000cd;
    display: flex;
    align-items: center;
}

.ticker-label {
    flex-shrink: 0;
    background: #ff0000;
    color: #fff;
    padding: 2px 8px;
    font-weight: bold;
    margin-right: 12px;
    font-size: 11px;
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: ticker-scroll 120s linear infinite;
}

.header-zone:hover .ticker-track {
    animation-duration: 480s; /* 4x slower = 75% reduction */
}

.ticker-content {
    white-space: nowrap;
    padding-right: 50px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====== MAIN LAYOUT ====== */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
}

.news-column {
    padding: 15px;
    border-right: 3px groove #c0c0c0;
    background: #f8f8f8;
}

.section-title {
    background: linear-gradient(90deg, #cc0000 0%, #ff3300 50%, #cc0000 100%);
    color: #fff;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    border: 3px outset #ff6666;
    text-shadow: 1px 1px 0 #000;
}

/* ====== NEWS ITEMS ====== */
.news-item {
    background: #fff;
    border: 3px groove #c0c0c0;
    margin-bottom: 15px;
}

.news-item.featured {
    background: linear-gradient(180deg, #fff8e0 0%, #ffe8a0 100%);
    border: 4px ridge #cc9900;
}

.news-header {
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    padding: 10px 12px;
    border-bottom: 2px groove #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.news-label {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    padding: 3px 8px;
    border: 2px outset;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.news-label.breaking { background: #cc0000; border-color: #ff6666; }
.news-label.exclusive { background: #0066cc; border-color: #66aaff; }
.news-label.opinion { background: #663399; border-color: #9966cc; }
.news-label.analysis { background: #006600; border-color: #66aa66; }
.news-label.warning { background: #cc6600; border-color: #ffaa66; }
.news-label.sources { background: #333333; border-color: #666666; }
.news-label.study { background: #990099; border-color: #cc66cc; }

.news-item h2 {
    flex: 1;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
}

.news-item h2 a {
    color: #000080;
    text-decoration: none;
}

.news-item h2 a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.hot-badge {
    background: #ff0000;
    color: #ffff00;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.starburst {
    display: inline-block;
    background: #ff0000;
    color: #ffcc00;
    font-family: Impact, sans-serif;
    font-size: 11px;
    padding: 4px 8px;
    transform: rotate(5deg);
    margin-left: 8px;
}

.news-body {
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.page-ref {
    margin-top: 8px;
    font-size: 11px;
    color: #cc0000;
    font-weight: bold;
}

.hr-fancy {
    height: 8px;
    background: linear-gradient(90deg,
        #ff0000 0%, #ff9900 17%, #ffff00 33%,
        #00ff00 50%, #0099ff 67%, #9900ff 83%, #ff0000 100%);
    margin: 15px 0;
    border: 1px solid #808080;
}

/* ====== SIDEBAR ====== */
.sidebar {
    background: #e0e0e0;
    padding: 10px;
    font-size: 12px;
}

.sidebar-box {
    background: linear-gradient(180deg, #ffffcc 0%, #ffff99 100%);
    border: 3px ridge #cc9900;
    padding: 10px;
    margin-bottom: 12px;
}

.sidebar-box h3 {
    background: linear-gradient(90deg, #996633 0%, #cc9933 50%, #996633 100%);
    color: #fff;
    margin: -10px -10px 10px -10px;
    padding: 6px 10px;
    font-size: 11px;
    text-shadow: 1px 1px 0 #333;
}

.sidebar-box ul {
    margin-left: 15px;
}

.sidebar-box li {
    margin-bottom: 5px;
}

.sidebar-box a {
    color: #003399;
}

.counter-box {
    background: #000;
    color: #00ff00;
    padding: 12px;
    text-align: center;
    font-family: 'Courier New', monospace;
    border: 4px ridge #666;
}

.counter-box p {
    font-size: 10px;
    color: #999;
    margin-bottom: 5px;
}

.counter-box .count {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #ff0000;
    background: #200000;
    display: inline-block;
    padding: 5px 12px;
    border: 2px inset #600;
    text-shadow: 0 0 5px #ff0000;
}

.guestbook-btn {
    display: block;
    background: linear-gradient(180deg, #00cc00 0%, #009900 50%, #006600 100%);
    color: #fff;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border: 3px outset #00cc00;
    margin-top: 12px;
    text-shadow: 1px 1px 0 #003300;
}

.guestbook-btn:hover {
    background: linear-gradient(180deg, #00ff00 0%, #00cc00 50%, #009900 100%);
}

.guestbook-btn:active {
    border-style: inset;
}

.awards-box {
    margin-top: 12px;
    text-align: center;
    font-size: 9px;
}

.awards-box span {
    display: inline-block;
    border: 1px solid #999;
    padding: 3px 6px;
    margin: 2px;
    background: #c0c0c0;
}

/* ====== FOOTER ====== */
.footer {
    background: linear-gradient(180deg, #c0c0c0 0%, #909090 100%);
    text-align: center;
    padding: 12px;
    font-size: 10px;
    border-top: 3px groove #e0e0e0;
}

.footer a {
    color: #000080;
    margin: 0 5px;
}

.footer hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #909090, #606060, #909090);
    margin: 8px 0;
}

.footer .tagline {
    font-style: italic;
    margin-top: 6px;
    color: #444;
}

/* ====== ARTICLE PAGE ====== */
.article-content {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.article-content h1 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    color: #000080;
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-meta {
    font-size: 11px;
    color: #666;
    border-bottom: 2px groove #c0c0c0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 1em;
    line-height: 1.7;
    font-size: 14px;
}

.article-content blockquote {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    border-left: 4px solid #cc0000;
    padding: 10px 15px;
    margin: 15px 0;
    font-style: italic;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #000080;
    font-size: 12px;
}

/* ====== SLOPTOPSY (Educational Breakdown) ====== */
.sloptopsy {
    margin-top: 30px;
    border-top: 4px double #808080;
    padding-top: 15px;
}

.sloptopsy summary {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 18px;
    color: #800000;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 15px;
    background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 100%);
    border: 2px outset #dfdfdf;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sloptopsy summary::-webkit-details-marker {
    display: none;
}

.sloptopsy summary::before {
    content: "▶";
    font-size: 12px;
    transition: transform 0.2s;
}

.sloptopsy summary::after {
    content: "— A bullshit breakdown";
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-style: italic;
    font-weight: normal;
    text-transform: none;
    color: #666;
    margin-left: auto;
}

.sloptopsy[open] summary::before {
    transform: rotate(90deg);
}

.sloptopsy summary:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #d0d0d0 100%);
}

.sloptopsy[open] summary {
    border-bottom: none;
    margin-bottom: 0;
}

.sloptopsy strong {
    display: block;
    background: linear-gradient(90deg, #333 0%, #555 100%);
    color: #fff;
    padding: 6px 12px;
    margin: 15px 0 8px 0;
    font-size: 12px;
    text-transform: uppercase;
    border: 2px outset #666;
}

.sloptopsy strong:first-of-type {
    margin-top: 15px;
}

.sloptopsy p {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid #c0c0c0;
}

/* ====== ARCHIVE PAGE ====== */
.archive-year {
    margin-bottom: 25px;
}

.year-heading {
    background: linear-gradient(90deg, #000080 0%, #0000cd 50%, #000080 100%);
    color: #fff;
    padding: 8px 14px;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    border: 2px outset #6666ff;
}

.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-item {
    padding: 8px 10px;
    border-bottom: 1px dotted #c0c0c0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.archive-item:hover {
    background: #f8f8f8;
}

.archive-date {
    font-size: 11px;
    color: #666;
    min-width: 100px;
}

.archive-item a {
    color: #000080;
    font-weight: bold;
    flex: 1;
}

.archive-item .news-label {
    font-size: 9px;
    padding: 2px 6px;
}

/* ====== TAGS PAGE ====== */
.tags-intro {
    background: linear-gradient(180deg, #ffffcc 0%, #ffff99 100%);
    border: 3px ridge #cc9900;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.tag-category {
    margin-bottom: 25px;
}

.category-heading {
    background: linear-gradient(90deg, #663399 0%, #9966cc 50%, #663399 100%);
    color: #fff;
    padding: 8px 14px;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
    border: 2px outset #9999cc;
    text-transform: uppercase;
}

.category-description {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
    padding-left: 14px;
}

.tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item a {
    display: inline-block;
    background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 100%);
    border: 2px outset #fff;
    padding: 4px 10px;
    font-size: 12px;
    color: #000080;
    text-decoration: none;
    text-transform: capitalize;
}

.tag-item a:hover {
    background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
}

.tag-item a:active {
    border-style: inset;
}

.tag-count {
    font-size: 10px;
    color: #666;
}

/* ====== STATIC PAGES ====== */
.static-page {
    padding: 20px 25px;
    background: #fff;
    line-height: 1.6;
}

.static-page h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    color: #000;
    border-bottom: 3px double #808080;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.static-page h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.static-page h3 {
    font-size: 16px;
    color: #444;
    margin-top: 20px;
    margin-bottom: 8px;
}

.static-page p {
    margin-bottom: 12px;
    color: #333;
}

.static-page .lead {
    font-size: 18px;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.static-page .last-updated {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.static-page ul {
    margin: 10px 0 15px 25px;
}

.static-page li {
    margin-bottom: 6px;
    color: #333;
}

.static-page blockquote {
    border-left: 4px solid #ccc;
    margin: 15px 0;
    padding: 10px 20px;
    background: #f9f9f9;
    font-style: italic;
}

.static-page blockquote footer {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.static-page a {
    color: #0000cc;
}

.static-page a:hover {
    color: #cc0000;
}

/* ====== UNDER CONSTRUCTION PAGE ====== */
.under-construction {
    text-align: center;
    background: repeating-linear-gradient(
        45deg,
        #ffcc00,
        #ffcc00 10px,
        #000 10px,
        #000 20px
    );
    padding: 0;
}

.construction-zone {
    background: #ffcc00;
    padding: 20px;
    margin: 20px;
}

.construction-zone h1 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 48px;
    color: #000;
    text-shadow: 2px 2px 0 #ff6600;
    border: none;
    margin: 10px 0;
    padding: 0;
}

.construction-icon {
    font-size: 32px;
    margin: 0;
}

.construction-message {
    background: #fff;
    margin: 0 20px;
    padding: 20px;
    border: 3px solid #000;
}

.construction-message p {
    margin-bottom: 10px;
}

.construction-message .check-back {
    font-weight: bold;
    font-size: 18px;
    color: #cc0000;
}

.construction-graphic {
    background: #fff;
    margin: 20px;
    padding: 20px;
    border: 3px solid #000;
}

.construction-graphic pre {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.2;
}

.construction-info {
    background: #fff;
    margin: 0 20px 20px 20px;
    padding: 20px;
    border: 3px solid #000;
    text-align: left;
}

.construction-info ul {
    margin-left: 20px;
}

.counter-text {
    background: #000;
    color: #0f0;
    padding: 10px;
    margin: 0 20px;
    font-family: 'Courier New', monospace;
}

.visitor-count {
    font-weight: bold;
}

.email-webmaster {
    background: #fff;
    margin: 20px;
    padding: 15px;
    border: 3px solid #000;
    font-size: 12px;
}

.fake-email {
    font-family: 'Courier New', monospace;
    color: #0000cc;
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .blink-text { animation: none; }
    .hot-badge { animation: none; }
}

:focus {
    outline: 2px solid #000080;
    outline-offset: 2px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 700px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .news-column {
        border-right: none;
        border-bottom: 3px groove #c0c0c0;
    }

    .site-header h1 {
        font-size: 36px;
    }

    .toolbar {
        flex-wrap: wrap;
    }
}
