/* Windows 95/98 Retro Theme */

@import url('https://fonts.googleapis.com/css2?family=Bytesized&family=Syne+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #5e5e5e;
    background-color: #008080; /* Teal desktop background */
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    padding: 20px;
}

/* Header window - separate from main content */
.header-window {
    max-width: 800px;
    margin: 0 auto 20px auto; /* Gap between windows */
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* Main container - Windows 95 window style */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #c0c0c0; /* Classic Windows gray */
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf; /* 3D raised border */
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* Window title bar for main content */
.window-title-bar {
    background: linear-gradient(to right, #000080, #1084d0); /* Windows 95 blue gradient */
    padding: 3px 8px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 32px;
    font-weight: bold;
    color: #00ff00; /* Neon green */
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    background: linear-gradient(to right, #000080, #1084d0); /* Windows 95 blue gradient */
    padding: 8px;
    margin: 0;
    text-align: left;
}

.site-title a {
    color: #00ff00;
    text-decoration: none;
}

.site-title a:hover {
    color: #00ff00;
}

.site-description {
    font-size: 16px;
    color: #000000;
    background-color: #c0c0c0;
    padding: 8px;
    border-top: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

nav {
    background-color: #c0c0c0;
    padding: 6px 8px;
    border-top: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

nav a {
    display: inline-block;
    color: #000000;
    background-color: #c0c0c0;
    text-decoration: none;
    padding: 6px 16px;
    margin-right: 4px;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf; /* Raised button */
    font-size: 16px;
    font-weight: normal;
}

nav a:hover {
    background-color: #d4d4d4;
}

nav a:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080; /* Pressed button */
    padding: 7px 15px 5px 17px;
}

/* Main content - Windows client area */
main {
    background-color: #ffffff;
    padding: 40px 50px;
    margin: 0;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080; /* Inset border */
    min-height: 400px;
}

/* Article/Post styling */
article {
    margin-bottom: 0;
}

article header h1,
article header h2 {
    font-size: 66px;
    font-weight: normal;
    line-height: .7;
    margin-bottom: 15px;
    color: #000000; /* Black */
    font-family: 'Bytesized', monospace;
}

/* Links in article headers */
article header h1 a,
article header h2 a {
    color: #000000;
    text-decoration: none;
}

article header h1 a:hover,
article header h2 a:hover {
    color: #0000ff;
    text-decoration: underline;
}

.post-meta {
    font-size: 15px;
    color: #808080;
    margin-bottom: 30px;
    font-family: 'Syne Mono', monospace;
}

.post-meta time {
    font-style: normal;
}

/* Post content */
.post-content,
.entry-content {
    font-family: 'Syne Mono', monospace;
    font-size: 30px;
    line-height: 1.3;
}

.post-content p,
.entry-content p {
    margin-bottom: 1.4em;
}

.post-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border: 1px solid #808080;
}

.post-content video,
.entry-content video {
    display: block;
    margin: 30px auto;
}

.post-content a,
.entry-content a {
    color: #0000ff;
    text-decoration: underline;
}

.post-content a:hover,
.entry-content a:hover {
    color: #ff00ff;
}

.post-content a:visited,
.entry-content a:visited {
    color: #800080;
}

/* Headings in content */
.post-content h1,
.post-content h2,
.post-content h3,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.3;
}

.post-content h2,
.entry-content h2 {
    font-size: 28px;
}

.post-content h3,
.entry-content h3 {
    font-size: 22px;
}

/* Lists */
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.4em;
    padding-left: 30px;
}

.post-content li,
.entry-content li {
    margin-bottom: 0.5em;
}

/* Code blocks */
.post-content code,
.entry-content code {
    font-family: 'Courier New', 'Fixedsys', monospace;
    font-size: 16px;
    background-color: #000000;
    color: #00ff00;
    padding: 2px 6px;
}

.post-content pre,
.entry-content pre {
    background-color: #000000;
    color: #00ff00;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 1.4em;
    border: 1px solid #808080;
}

.post-content pre code,
.entry-content pre code {
    background: none;
    padding: 0;
}

/* Blockquotes */
.post-content blockquote,
.entry-content blockquote {
    background-color: #ffffcc;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 20px;
    margin: 1.5em 0;
    color: #000000;
    font-style: italic;
}

/* Post list (archive page) */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list h2 {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 8px;
    color: #000000;
    font-family: 'Bytesized', monospace;
}

.post-list h2 a {
    color: #000000;
    text-decoration: none;
}

.post-list h2 a:hover {
    color: #0000ff;
    text-decoration: underline;
}

.post-list .post-meta {
    margin-bottom: 12px;
}

/* Pagination */
.pagination {
    margin: 60px 0 20px 0;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    background-color: #c0c0c0;
    border-top: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
}

.pagination a {
    display: inline-block;
    color: #000000;
    background-color: #c0c0c0;
    text-decoration: none;
    padding: 6px 16px;
    margin: 0 8px;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
}

.pagination a:hover {
    background-color: #d4d4d4;
}

.pagination a:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 7px 15px 5px 17px;
}

.pagination span {
    margin: 0 15px;
    color: #000000;
}

/* Footer */
footer {
    background-color: #c0c0c0;
    padding: 12px;
    border-top: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    font-size: 14px;
    color: #000000;
    text-align: center;
}

footer p {
    margin: 4px 0;
}

footer a {
    color: #0000ff;
    text-decoration: underline;
}

footer a:hover {
    color: #ff00ff;
}

footer a:visited {
    color: #800080;
}

/* Article separator */
article + hr {
    border: none;
    border-top: 1px solid #808080;
    margin: 50px 0;
}

/* Windows button style */
.win-button,
a.win-button {
    display: inline-block;
    background-color: #c0c0c0;
    color: #000000 !important;
    text-decoration: none !important;
    padding: 4px 12px;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    font-weight: bold;
    margin-top: 8px;
}

.win-button:hover,
a.win-button:hover {
    background-color: #d4d4d4;
    color: #000000 !important;
}

.win-button:active,
a.win-button:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 5px 11px 3px 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .container {
        max-width: 100%;
    }

    main {
        padding: 12px;
    }

    article header h1,
    article header h2 {
        font-size: 16px;
    }
}

/* WordPress content classes preserved */
.alignnone {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}
