/* Hybrid Classic Web 1.0 & Macintosh OS 9 Styling */

body {
    background-color: #c0c0c0;
    /* Solid gray OS 9 / Win95 background */
    font-family: 'Times New Roman', Times, serif;
    /* Web 1.0 Typography */
    color: #000000;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

a {
    color: #0000FF;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

/* GUI Elements: OS 9 Windows */
.os-window {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    /* sharp shadow */
}

.inner-window {
    background-color: #c0c0c0;
}

/* Titlebars */
.window-titlebar {
    background: repeating-linear-gradient(0deg,
            #ffffff,
            #ffffff 1px,
            #000000 2px,
            #000000 3px);
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    font-family: 'Arial', sans-serif;
    /* OS 9 uses sans-serif for UI */
    font-size: 14px;
    font-weight: bold;
}

.window-titlebar span {
    background-color: #ffffff;
    padding: 0 5px;
    border: 1px solid #000;
}

.dark-titlebar {
    background: #000080;
    /* Win95 vibe mix */
    color: #fff;
    border-bottom: 1px solid #000;
}

.dark-titlebar span {
    background: transparent;
    border: none;
    color: #fff;
}

.window-controls {
    background: #fff;
    border: 1px solid #000;
    padding: 0 3px;
    font-size: 12px;
    cursor: default;
}

/* Layout */
.desktop-container {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    /* padding for status bar */
    background: #c0c0c0;
}

.menubar {
    background-color: #c0c0c0;
    border-bottom: 1px solid #000;
    padding: 5px 10px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.menubar a {
    color: #000;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
}

.menubar a:hover {
    background-color: #000;
    color: #fff;
}

.search-bar-container {
    padding: 10px;
    border-bottom: 1px solid #000;
    background: #e0e0e0;
}

.search-bar-container form {
    display: flex;
    gap: 10px;
}

.window-content {
    padding: 15px;
}

.main-content {
    background: #e0e0e0;
}

.statusbar {
    background: #c0c0c0;
    border-top: 1px solid #888;
    padding: 3px 10px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

/* Forms & Buttons */
.btn {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    color: #000;
    padding: 4px 10px;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn,
.btn:visited,
.action-btn,
.action-btn:visited,
.danger-btn,
.danger-btn:visited,
.success-btn,
.success-btn:visited {
    color: #000;
    text-decoration: none;
}

.btn:active {
    border-style: inset;
    background-color: #a0a0a0;
    padding-top: 6px;
    padding-left: 11px;
}

.small-btn {
    padding: 2px 6px;
    font-size: 12px;
}

input[type="text"],
input[type="password"],
textarea {
    border: 2px inset #ffffff;
    background: #fff;
    padding: 4px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
}

.retro-form label {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

/* Posts / Content */
.page-title {
    font-size: 24px;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-top: 0;
}

.post-card {
    margin-top: 0;
    background: #fff;
}

.post-meta {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 10px;
    font-weight: bold;
}

.post-tags a {
    margin-right: 10px;
}

.tree-ul {
    margin: 0;
    padding-left: 20px;
}

.tree-ul .tree-ul {
    margin-top: 5px;
}

.tree-ul li {
    margin-bottom: 5px;
}

.tree-ul a {
    color: #000;
    text-decoration: none;
}

.tree-ul a:hover {
    text-decoration: underline;
}

.post-snippet,
.post-body {
    white-space: pre-wrap;
}

.post-snippet p,
.post-body p {
    margin-top: 0;
    margin-bottom: 0;
}

.post-body {
    font-size: 18px;
    /* readable */
    line-height: 1.6;
}

.post-body img {
    max-width: 100%;
    border: 1px solid #000;
    box-shadow: 2px 2px 0 #000;
}

.post-body iframe {
    border: 2px solid #000;
}



.retro-hr {
    border: 0;
    height: 1px;
    background: #000;
    margin: 20px 0;
}

/* Admin Dashboard Table */
.retro-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px inset #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.retro-table th,
.retro-table td {
    border: 1px solid #888;
    padding: 6px;
    text-align: left;
}

.retro-table th {
    background: #c0c0c0;
    border: 2px outset #ffffff;
}

.action-btn {
    margin-bottom: 15px;
}

.danger-btn {
    color: red;
}

.success-btn {
    color: green;
}

.full-width {
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 15px;
}

/* 2-Column Sidebar Layout */
.layout-wrapper {
    display: flex;
    gap: 20px;
}

.sidebar {
    flex: 0 0 250px;
    border: 2px inset #ffffff;
    background: #fff;
    padding: 10px;
    min-height: 400px;
}

.feed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tree-ul {
    list-style-type: none;
    padding-left: 15px;
    margin: 0;
    line-height: 1.8;
}

.tree-ul li::before {
    content: "📁 ";
}

/* OS Status Bar Footer */
.os-statusbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #c0c0c0;
    border-top: 2px outset #ffffff;
    padding: 4px 15px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 9999;
}

.status-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-right {
    font-weight: bold;
}
/* Case Study Snippet Styling */
.case-study-hero {
    background: linear-gradient(to right, #000080 0%, #3a6ea5 30%, #ffffff 30%, #ffffff 100%);
    border: 2px outset #ffffff;
    padding: 0;
    display: flex;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}
.case-study-hero::before {
    content: 'CD-ROM';
    position: absolute;
    left: -20px;
    bottom: 30px;
    color: rgba(255,255,255,0.7);
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: 24px;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}
.case-study-content {
    margin-left: 30%;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #000;
}
.case-study-title {
    font-size: 20px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 5px;
}
.case-study-date {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
    border-bottom: 2px groove #ccc;
    padding-bottom: 5px;
}
.case-study-btn {
    background: #c0c0c0;
    border: 2px outset #fff;
    padding: 5px 15px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
}
.case-study-btn:active {
    border-style: inset;
}

