/* Windows 95/98 Retro Blog - Pure CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', Arial, sans-serif;
    background-color: hsl(180, 25%, 50%);
    color: hsl(0, 0%, 0%);
    position: relative;
    min-height: 100vh;
}

/* Scanline effect overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    animation: subtle-scanline 8s linear infinite;
}

@keyframes subtle-scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Container */
.page-container {
    min-height: 100vh;
    padding: 1rem;
}

.max-width-container {
    max-width: 1024px;
    margin: 0 auto;
}

/* Window Frame */
.window-frame {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 82%);
    border-left-color: hsl(0, 0%, 82%);
    border-right-color: hsl(0, 0%, 50%);
    border-bottom-color: hsl(0, 0%, 50%);
    background-color: hsl(0, 0%, 75%);
    margin-bottom: 1rem;
}

/* Title Bar */
.title-bar {
    background-color: hsl(180, 100%, 25%);
    padding: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-text {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    padding: 0 0.25rem;
}

.title-buttons {
    display: flex;
    gap: 0.125rem;
}

.title-button {
    width: 16px;
    height: 16px;
    font-size: 0.75rem;
    font-weight: bold;
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 82%);
    border-left-color: hsl(0, 0%, 82%);
    border-right-color: hsl(0, 0%, 50%);
    border-bottom-color: hsl(0, 0%, 50%);
    background-color: hsl(0, 0%, 75%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.title-button:hover {
    background-color: hsl(0, 0%, 82%);
}

/* Window Content */
.window-content {
    padding: 0.5rem;
}

/* Header */
.header {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 100%);
}

.header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: hsl(0, 0%, 30%);
}

/* Navigation */
.nav-bar {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 82%);
    padding: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 82%);
    border-left-color: hsl(0, 0%, 82%);
    border-right-color: hsl(0, 0%, 50%);
    border-bottom-color: hsl(0, 0%, 50%);
    background-color: hsl(0, 0%, 75%);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: hsl(0, 0%, 0%);
    display: inline-block;
}

.nav-link:hover {
    background-color: rgba(191, 191, 191, 0.8);
}

.nav-link.active {
    background-color: hsl(180, 100%, 40%);
    color: white;
}

/* Terminal Section */
.terminal-section {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 5%);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.terminal-content {
    font-family: 'Courier New', monospace;
    color: hsl(120, 100%, 40%);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    font-size: 0.875rem;
    animation: flicker 0.15s infinite;
}

.terminal-content pre {
    margin: 0;
    white-space: pre-wrap;
}

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

.terminal-text {
    font-family: 'Courier New', monospace;
    color: hsl(120, 100%, 40%);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Blog Section */
.blog-section {
    margin-top: 1rem;
}

.section-title {
    font-size: 1.25rem;
    border-bottom: 2px solid hsl(0, 0%, 50%);
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
}

/* Blog Post */
.blog-post {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 100%);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(0, 0%, 50%);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-header h3 {
    font-size: 1.125rem;
}

.post-date {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: hsl(0, 0%, 30%);
}

.post-content {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    line-height: 1.5;
}

.post-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tag {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 82%);
    border-left-color: hsl(0, 0%, 82%);
    border-right-color: hsl(0, 0%, 50%);
    border-bottom-color: hsl(0, 0%, 50%);
    background-color: hsl(0, 0%, 82%);
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}

/* Archive Section */
.archive-section {
    margin-top: 1rem;
}

.year-header {
    font-size: 1.5rem;
    border-bottom: 2px solid hsl(0, 0%, 50%);
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

.archive-list {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 100%);
    padding: 0.75rem;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(0, 0%, 50%);
    gap: 1rem;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-info h3 {
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.archive-info h3:hover {
    color: hsl(180, 100%, 25%);
}

.archive-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.tag-small {
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: hsl(0, 0%, 30%);
}

.archive-date {
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: hsl(0, 0%, 30%);
    white-space: nowrap;
}

/* Content Box */
.content-box {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 100%);
    padding: 1rem;
    margin-bottom: 1rem;
}

.box-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid hsl(0, 0%, 50%);
}

.text-content {
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-content p {
    margin-bottom: 0.75rem;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.code-snippet {
    font-size: 0.75rem;
    padding-top: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.skill-item {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 82%);
    border-left-color: hsl(0, 0%, 82%);
    border-right-color: hsl(0, 0%, 50%);
    border-bottom-color: hsl(0, 0%, 50%);
    background-color: hsl(0, 0%, 75%);
    padding: 0.5rem;
}

.skill-label {
    font-weight: bold;
}

/* Contact Info */
.contact-info {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-label {
    font-weight: bold;
}

.contact-info a {
    color: hsl(180, 100%, 25%);
    text-decoration: underline;
}

.contact-info a:hover {
    color: hsl(180, 100%, 40%);
}

.contact-note {
    font-size: 0.75rem;
    color: hsl(0, 0%, 30%);
    padding-top: 0.5rem;
}

/* Links List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-button {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 82%);
    border-left-color: hsl(0, 0%, 82%);
    border-right-color: hsl(0, 0%, 50%);
    border-bottom-color: hsl(0, 0%, 50%);
    background-color: hsl(0, 0%, 75%);
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    color: hsl(0, 0%, 0%);
    display: block;
    transition: background-color 0.2s;
}

.link-button:hover {
    background-color: hsl(180, 100%, 40%);
    color: white;
}

/* Footer */
.footer {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 100%);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 1rem;
}

.footer p {
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer .terminal-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Status Bar */
.status-bar {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 82%);
    border-left-color: hsl(0, 0%, 82%);
    border-right-color: hsl(0, 0%, 50%);
    border-bottom-color: hsl(0, 0%, 50%);
    background-color: hsl(0, 0%, 75%);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item {
    border-style: solid;
    border-width: 2px;
    border-top-color: hsl(0, 0%, 50%);
    border-left-color: hsl(0, 0%, 50%);
    border-right-color: hsl(0, 0%, 82%);
    border-bottom-color: hsl(0, 0%, 82%);
    background-color: hsl(0, 0%, 100%);
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    flex: 1;
}

.status-item:last-child {
    flex: 0 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 0.5rem;
    }
    
    .post-header {
        flex-direction: column;
    }
    
    .archive-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}