/*
Theme Name: Netscape 90s
Theme URI: https://example.com
Author: Claude
Description: An authentic 1990s Netscape Navigator-era web design. Complete with marquee text, beveled buttons, tiled backgrounds, visitor counters, and all the glorious chaos of the early web.
Version: 1.0
License: GNU General Public License v2 or later
Tags: retro, 90s, netscape, classic
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --win-bg: #c0c0c0;
    --win-light: #ffffff;
    --win-dark: #808080;
    --win-darker: #404040;
    --win-title: #000080;
    --win-title-text: #ffffff;
    --link-blue: #0000ee;
    --link-visited: #551a8b;
    --link-active: #ff0000;
    --body-bg: #008080;
    --text-black: #000000;
    --highlight: #ffff00;
    --netscape-gray: #c0c0c0;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--win-dark) var(--win-bg);
}

body {
    margin: 0;
    padding: 8px;
    background-color: var(--body-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='2' fill='%23007070'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23007070'/%3E%3C/svg%3E");
    font-family: "Times New Roman", Times, serif;
    font-size: 12px;
    color: var(--text-black);
    min-height: 100vh;
}

/* ===== BEVELED BORDERS (Windows 95 style) ===== */
.bevel-out {
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
}

.bevel-in {
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.panel-border {
    border-top: 1px solid var(--win-light);
    border-left: 1px solid var(--win-light);
    border-right: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-dark);
    outline: 1px solid var(--win-darker);
    outline-offset: 1px;
}

/* ===== BROWSER CHROME ===== */
#browser-chrome {
    background: var(--netscape-gray);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

/* ===== TITLE BAR ===== */
#title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 6px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

#title-bar .title-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

#title-bar .title-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset -2px -2px 3px rgba(0,0,0,0.3);
}

.title-buttons {
    display: flex;
    gap: 2px;
}

.title-btn {
    width: 16px;
    height: 14px;
    background: var(--netscape-gray);
    border-top: 1px solid var(--win-light);
    border-left: 1px solid var(--win-light);
    border-right: 1px solid var(--win-darker);
    border-bottom: 1px solid var(--win-darker);
    font-size: 9px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: bold;
}

/* ===== MENU BAR ===== */
#menu-bar {
    background: var(--netscape-gray);
    padding: 2px 4px;
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--win-dark);
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
}

.menu-item {
    padding: 2px 8px;
    cursor: pointer;
    color: var(--text-black);
    text-decoration: none;
}

.menu-item:hover {
    background: var(--win-title);
    color: white;
}

/* ===== TOOLBAR ===== */
#toolbar {
    background: var(--netscape-gray);
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid var(--win-dark);
}

.toolbar-btn {
    background: var(--netscape-gray);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
    padding: 2px 8px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    gap: 1px;
}

.toolbar-btn:active {
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.toolbar-btn .btn-icon {
    font-size: 16px;
    line-height: 1;
}

.toolbar-btn .btn-label {
    font-size: 9px;
}

.toolbar-divider {
    width: 2px;
    height: 40px;
    border-left: 1px solid var(--win-dark);
    border-right: 1px solid var(--win-light);
    margin: 0 2px;
}

/* ===== LOCATION BAR ===== */
#location-bar {
    background: var(--netscape-gray);
    padding: 3px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--win-dark);
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
}

#location-bar label {
    font-weight: bold;
    white-space: nowrap;
}

#location-bar input {
    flex: 1;
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
    padding: 1px 4px;
    font-family: "Courier New", monospace;
    font-size: 11px;
    background: white;
    outline: none;
}

/* ===== MARQUEE BANNER ===== */
#marquee-banner {
    background: #000080;
    color: #00ff00;
    padding: 4px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: bold;
    border-top: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-light);
    overflow: hidden;
}

#marquee-banner marquee {
    display: block;
}

/* ===== MAIN CONTENT AREA ===== */
#content-area {
    background: #ffffff;
    min-height: 500px;
}

/* ===== LAYOUT ===== */
#page-wrapper {
    display: flex;
    gap: 0;
}

#main-content {
    flex: 1;
    padding: 10px;
    border-right: 2px solid var(--win-dark);
}

#sidebar {
    width: 160px;
    background: var(--netscape-gray);
    padding: 6px;
    flex-shrink: 0;
}

/* ===== SITE HEADER ===== */
#site-header {
    background: linear-gradient(to bottom, #000080, #0000cd);
    color: white;
    padding: 10px;
    text-align: center;
    border-bottom: 3px solid #ffff00;
    position: relative;
    overflow: hidden;
}

#site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
}

.site-title-main {
    font-family: Impact, "Arial Narrow", Arial, sans-serif;
    font-size: 32px;
    color: #ffff00;
    text-shadow: 3px 3px 0 #ff0000, -1px -1px 0 #ff6600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.site-description-main {
    color: #00ffff;
    font-family: "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    margin: 4px 0 0;
    position: relative;
}

/* ===== ANIMATED STARS ===== */
.star-divider {
    text-align: center;
    color: #ffff00;
    font-size: 16px;
    letter-spacing: 8px;
    padding: 4px 0;
    background: #000080;
}

/* ===== NAVIGATION ===== */
#main-nav {
    background: var(--netscape-gray);
    padding: 4px;
    border-bottom: 2px solid var(--win-dark);
    border-top: 1px solid var(--win-light);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

#main-nav a {
    display: inline-block;
    background: var(--netscape-gray);
    color: var(--text-black);
    text-decoration: none;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
}

#main-nav a:hover {
    background: #000080;
    color: white;
}

#main-nav a:active {
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

/* ===== POSTS ===== */
.post-entry {
    border: 1px solid #999;
    margin-bottom: 14px;
    background: white;
}

.post-entry-header {
    background: linear-gradient(to bottom, #000080, #0000cc);
    color: white;
    padding: 4px 8px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-entry-header a {
    color: #ffff00;
    text-decoration: none;
}

.post-entry-header a:hover {
    text-decoration: underline;
}

.post-date {
    font-size: 10px;
    color: #c0c0ff;
    font-weight: normal;
}

.post-entry-body {
    padding: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.post-entry-body img {
    max-width: 100%;
    border: 2px solid #999;
}

.post-entry-footer {
    background: var(--netscape-gray);
    padding: 3px 8px;
    border-top: 1px solid var(--win-dark);
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 10px;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.post-entry-footer a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: 10px;
}

.post-entry-footer a:hover {
    text-decoration: underline;
}

/* ===== LINKS ===== */
a {
    color: var(--link-blue);
}

a:visited {
    color: var(--link-visited);
}

a:active {
    color: var(--link-active);
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
    font-family: "Times New Roman", serif;
}

h1 { color: #000080; font-size: 20px; border-bottom: 2px solid #000080; }
h2 { color: #000080; font-size: 16px; }
h3 { color: #800000; font-size: 14px; }

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    background: var(--netscape-gray);
    margin-bottom: 8px;
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
}

.widget-titlebar {
    background: linear-gradient(to right, #000080, #0000cd);
    color: white;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
}

.widget-content {
    padding: 6px;
    font-size: 11px;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.widget-content ul {
    margin: 0;
    padding-left: 16px;
}

.widget-content li {
    margin-bottom: 3px;
}

.widget-content a {
    font-size: 11px;
    color: var(--link-blue);
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
    background: black;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    border: 3px inset #555;
    letter-spacing: 4px;
    margin: 4px 0;
}

/* ===== UNDER CONSTRUCTION ===== */
.under-construction {
    text-align: center;
    padding: 6px;
    font-size: 11px;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.construction-text {
    color: #ff0000;
    font-weight: bold;
    font-size: 10px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== BEST VIEWED WITH ===== */
.best-viewed {
    text-align: center;
    font-size: 9px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    color: #555;
    margin-top: 4px;
}

/* ===== HORIZONTAL RULE ===== */
hr {
    border: none;
    border-top: 2px solid var(--win-darker);
    border-bottom: 1px solid var(--win-light);
    margin: 8px 0;
}

/* ===== STATUS BAR ===== */
#status-bar {
    background: var(--netscape-gray);
    border-top: 2px solid var(--win-dark);
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 10px;
}

.status-panel {
    border-top: 1px solid var(--win-darker);
    border-left: 1px solid var(--win-darker);
    border-right: 1px solid var(--win-light);
    border-bottom: 1px solid var(--win-light);
    padding: 1px 4px;
}

#status-text {
    flex: 1;
}

/* ===== COMMENTS ===== */
.comment {
    border: 1px solid #999;
    margin-bottom: 8px;
    background: #fffff0;
}

.comment-header {
    background: var(--netscape-gray);
    padding: 2px 6px;
    font-size: 11px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    border-bottom: 1px solid #999;
    display: flex;
    justify-content: space-between;
}

.comment-body {
    padding: 6px;
    font-size: 12px;
}

/* ===== COMMENT FORM ===== */
.comment-form-wrapper {
    border: 2px inset #999;
    padding: 8px;
    background: var(--netscape-gray);
}

.comment-form-wrapper input[type="text"],
.comment-form-wrapper input[type="email"],
.comment-form-wrapper textarea {
    width: 100%;
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
    padding: 2px 4px;
    font-family: "Times New Roman", serif;
    font-size: 12px;
    background: white;
    margin-bottom: 4px;
}

.comment-form-wrapper input[type="submit"] {
    background: var(--netscape-gray);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
    padding: 3px 16px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    font-weight: bold;
}

.comment-form-wrapper input[type="submit"]:active {
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

/* ===== PROGRESS BAR ===== */
#loading-bar {
    height: 12px;
    background: var(--netscape-gray);
    border: 1px solid var(--win-dark);
    width: 80px;
    overflow: hidden;
    display: flex;
}

.progress-segment {
    width: 8px;
    height: 100%;
    background: #000080;
    margin-right: 1px;
    animation: load-progress 2s ease-in-out infinite;
}

.progress-segment:nth-child(1) { animation-delay: 0s; }
.progress-segment:nth-child(2) { animation-delay: 0.15s; }
.progress-segment:nth-child(3) { animation-delay: 0.3s; }
.progress-segment:nth-child(4) { animation-delay: 0.45s; }
.progress-segment:nth-child(5) { animation-delay: 0.6s; }

@keyframes load-progress {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ===== FOOTER ===== */
#site-footer {
    background: var(--netscape-gray);
    padding: 8px;
    text-align: center;
    border-top: 2px solid var(--win-darker);
    font-size: 10px;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 6px 0;
}

.badge {
    display: inline-block;
    border: 1px solid #555;
    padding: 2px 4px;
    font-size: 9px;
    font-weight: bold;
    font-family: "MS Sans Serif", Arial, sans-serif;
    text-decoration: none;
}

.badge-netscape { background: #808080; color: white; }
.badge-ie { background: #003087; color: white; }
.badge-html { background: #e44d26; color: white; }
.badge-best800 { background: #000080; color: #00ff00; }
.badge-noframes { background: #cc0000; color: white; }
.badge-gif { background: #f5a623; color: black; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: var(--netscape-gray); }
::-webkit-scrollbar-thumb {
    background: var(--netscape-gray);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
}
::-webkit-scrollbar-button {
    background: var(--netscape-gray);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
    display: block;
    height: 16px;
}

/* ===== PAGE BACKGROUND TILES ===== */
.page-bg-stars {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='1' fill='%23ffffff' opacity='0.3'/%3E%3Ccircle cx='4' cy='4' r='0.5' fill='%23ffffff' opacity='0.2'/%3E%3Ccircle cx='28' cy='10' r='0.5' fill='%23ffffff' opacity='0.2'/%3E%3C/svg%3E");
}

/* ===== GUESTBOOK RAINBOW TEXT ===== */
.rainbow-text span:nth-child(1) { color: #ff0000; }
.rainbow-text span:nth-child(2) { color: #ff8800; }
.rainbow-text span:nth-child(3) { color: #ffff00; }
.rainbow-text span:nth-child(4) { color: #00aa00; }
.rainbow-text span:nth-child(5) { color: #0000ff; }
.rainbow-text span:nth-child(6) { color: #8800aa; }

/* ===== SEARCH BOX ===== */
.search-box input[type="text"] {
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
    padding: 2px 4px;
    font-size: 11px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    width: 100%;
    background: white;
    margin-bottom: 4px;
}

.search-box input[type="submit"] {
    background: var(--netscape-gray);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
    padding: 2px 10px;
    font-size: 11px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    cursor: pointer;
}

/* ===== PAGINATION ===== */
.pagination {
    text-align: center;
    padding: 8px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-darker);
    background: var(--netscape-gray);
    text-decoration: none;
    color: var(--text-black);
}

.pagination .current {
    background: #000080;
    color: white;
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

/* ===== SINGLE POST ===== */
.single-post-container {
    padding: 10px;
}

.post-header-single {
    border-bottom: 2px solid #000080;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

.post-content {
    font-size: 13px;
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    border: 2px solid #999;
}

.post-content blockquote {
    border-left: 4px solid #000080;
    margin: 8px 0 8px 16px;
    padding-left: 8px;
    color: #555;
    font-style: italic;
}

/* ===== CATEGORIES WIDGET ===== */
.cat-link {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
    font-size: 11px;
    color: var(--link-blue);
    text-decoration: none;
}

.cat-count {
    background: #000080;
    color: white;
    padding: 0 3px;
    font-size: 9px;
    font-family: "Courier New", monospace;
}

/* ===== BLINKING NEW ===== */
.new-badge {
    background: #ff0000;
    color: #ffff00;
    font-size: 9px;
    font-weight: bold;
    font-family: "MS Sans Serif", Arial, sans-serif;
    padding: 0 3px;
    animation: blink 0.5s step-end infinite;
}

/* ===== FEATURED IMAGE ===== */
.post-thumbnail {
    float: right;
    margin: 0 0 8px 10px;
    border: 2px solid #999;
    max-width: 200px;
}

.post-thumbnail img {
    display: block;
    max-width: 100%;
}

/* ===== CLEARFIX ===== */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== ALERT BOX ===== */
.alert-box {
    background: #ffffd0;
    border: 2px solid #cc0000;
    padding: 6px 8px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.alert-icon {
    font-size: 20px;
    line-height: 1;
}

/* ===== 404 PAGE ===== */
.error-404 {
    text-align: center;
    padding: 20px;
}

.error-404 h1 {
    font-size: 48px;
    color: #ff0000;
    animation: blink 1s step-end infinite;
    border: none;
}

/* ===== MISC ===== */
.text-center { text-align: center; }
.bold { font-weight: bold; }
.small { font-size: 10px; }
