:root {
    --win-gray: #d4d0c8;
    --win-dark: #808080;
    --win-light: #ffffff;
    --win-blue: #0a246a;
    --win-blue-light: #a6caf0;
    --border-outset: 2px solid;
    --border-inset: 2px solid;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000; /* Desktop background behind window */
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 11px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.browser-window {
    width: 100%;
    height: 100%;
    background-color: var(--win-gray);
    display: flex;
    flex-direction: column;
    border: 1px solid #fff;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* Title Bar */
.title-bar {
    background: linear-gradient(90deg, var(--win-blue), var(--win-blue-light));
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.title-controls button {
    width: 16px;
    height: 14px;
    background-color: var(--win-gray);
    border: 1px outset white;
    font-size: 9px;
    line-height: 10px;
    margin-left: 2px;
    padding: 0;
    cursor: pointer;
}

.title-controls .close-btn {
    font-family: sans-serif;
    font-weight: bold;
}

/* Menu Bar */
.menu-bar {
    padding: 2px 5px;
    border-bottom: 1px solid white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-bar span:hover {
    background-color: var(--win-blue);
    color: white;
    cursor: default;
}

/* Toolbar Stack */
.toolbar-stack {
    border-bottom: 1px solid var(--win-dark);
    padding-bottom: 2px;
}

.toolbar-row {
    display: flex;
    align-items: center;
    padding: 2px 5px;
    border-top: 1px solid white;
    border-bottom: 1px solid var(--win-dark);
    gap: 4px;
    height: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.toolbar-row::-webkit-scrollbar {
    display: none;
}

.separator {
    width: 2px;
    height: 18px;
    border-left: 1px solid var(--win-dark);
    border-right: 1px solid white;
    margin: 0 2px;
}

.toolbar-label {
    color: #444;
    padding-right: 2px;
    cursor: default;
}

/* Buttons */
button {
    background-color: var(--win-gray);
    border: 1px outset white;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

button:active {
    border: 1px inset white;
}

/* Inputs */
input[type="text"] {
    border: 2px inset white;
    padding: 2px;
    font-family: inherit;
    font-size: 11px;
    height: 20px;
}

/* Address Bar Specifics */
.address-row {
    gap: 5px;
}

.address-row .input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 2px inset white;
    height: 22px;
}

.address-row input {
    border: none;
    width: 100%;
    outline: none;
}

.ie-icon {
    width: 14px;
    height: 14px;
    margin: 0 4px;
}

/* Extra Toolbars */
.extra-toolbar {
    background-color: #ece9d8; /* Slightly different shade for plugins */
}

.search-input {
    width: 120px;
}

.brand {
    font-weight: bold;
    padding-right: 5px;
}
.brand.google { color: blue; font-family: serif; }
.brand.yahoo { color: purple; font-weight: bold; }
.brand.ask { color: red; font-style: italic; }

/* Viewport (The Blog) */
.viewport {
    flex-grow: 1;
    background-color: white;
    border: 2px inset white;
    overflow-y: auto;
    padding: 20px;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .blog-container {
        display: flex;
        flex-direction: column;
    }
    .about-container {
        flex-direction: column;
    }
    .profile-pic-frame {
        margin: 0 auto;
    }
}

.post {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
}

/* Added for clickable posts */
.post.link {
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.post.link:hover {
    border-color: #003366;
    background-color: #f9f9f9;
}

.post h1 {
    margin-top: 0;
    color: #003366;
    font-size: 24px;
    text-decoration: underline;
}

.meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-family: 'Verdana', sans-serif;
}

.post-footer {
    margin-top: 15px;
    font-size: 12px;
    border-top: 1px dashed #ccc;
    padding-top: 5px;
}

.sidebar {
    background: #f0f0f0;
    padding: 10px;
    border: 1px solid #ccc;
    height: fit-content;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 14px;
    border-bottom: 2px solid #999;
}

.sidebar ul {
    padding-left: 20px;
    font-size: 14px;
}

/* About Page Styles */
.about-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-pic-frame {
    background-color: #fff;
    border: 1px solid #999;
    padding: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), 
                      linear-gradient(-45deg, #ccc 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #ccc 75%), 
                      linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.stats-table td {
    border: 1px solid #ccc;
    padding: 4px 8px;
}

.stats-label {
    background-color: #eee;
    font-weight: bold;
    width: 30%;
}

/* Status Bar */
.status-bar {
    height: 20px;
    border-top: 1px solid white;
    display: flex;
    align-items: center;
    padding: 0 5px;
    gap: 10px;
    font-size: 11px;
}

.status-text {
    flex-grow: 1;
}

.status-progress {
    width: 100px;
    height: 12px;
    border: 1px inset white;
    background: white;
}

.progress-bar {
    width: 60%;
    height: 100%;
    background-color: navy;
}

.blog-img {
  max-height: 256px;
  max-width: 256px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}