/*
Theme Name: RetroWeb 95
Theme URI: https://jake-springer.com
Author: Jake Springer
Description: Authentic late 90s / early 2000s desktop GUI theme with Unix paths, high-legibility retro system typography, condensed post feed, featured image thumbnails, grep search bar, and interactive category/tag badges.
Version: 1.8.1
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --desktop-bg: #008080; /* Iconic Win95 / X11 Teal */
  --win-gray: #c0c0c0;
  --win-white: #ffffff;
  --win-dark-gray: #808080;
  --win-black: #000000;
  --win-blue-start: #000080;
  --win-blue-end: #1084d0;
  --link-blue: #0000cc;
  --link-purple: #551a8b;
  --feed-stripe: #f7f9fa;
  --font-system: Tahoma, "Segoe UI", Geneva, Verdana, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px 8px;
  background-color: var(--desktop-bg);
  font-family: var(--font-system);
  font-size: 14px;
  color: #000000;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 600px) {
  body {
    padding: 24px 12px;
  }
}

a {
  color: var(--link-blue);
  text-decoration: underline;
}

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

a:hover {
  color: #ff0000;
}

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

/* 3D Window Box (Outset) */
.win-box {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: 1px 1px 0px var(--win-dark-gray);
  margin-bottom: 18px;
  padding: 3px;
}

/* Window Titlebar */
.win-titlebar {
  background: linear-gradient(90deg, var(--win-blue-start), var(--win-blue-end));
  color: #ffffff;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.win-title-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .win-title-left {
    font-size: 12px;
  }
}

.win-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.win-controls {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.win-btn {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  width: 17px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: monospace;
  font-weight: bold;
  color: #000;
  line-height: 1;
  cursor: default;
}

.win-btn:active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
}

/* Sunken Inset Client Area */
.win-client {
  background: #ffffff;
  border-top: 2px solid var(--win-dark-gray);
  border-left: 2px solid var(--win-dark-gray);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 12px 14px;
  margin-top: 3px;
}

@media (min-width: 600px) {
  .win-client {
    padding: 16px 20px;
  }
}

/* Header Masthead */
.site-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

@media (min-width: 600px) {
  .site-title {
    font-size: 26px;
  }
}

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

.site-desc {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

/* Top Navigation Bar */
.win-nav-strip {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-dark-gray);
  padding: 4px 8px;
  margin: -12px -14px 12px -14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
}

@media (min-width: 600px) {
  .win-nav-strip {
    margin: -16px -20px 14px -20px;
  }
}

.win-nav-strip a {
  color: #000;
  text-decoration: none;
  padding: 2px 6px;
}

.win-nav-strip a:hover {
  background: #000080;
  color: #fff;
}

/* Search Console Row */
.search-console-row {
  margin-top: 10px;
  background: #f0f0f0;
  border: 1px solid #c0c0c0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 6px 8px;
}

.win-search-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
}

.win-search-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #222;
  font-weight: bold;
  flex-shrink: 0;
}

.win-search-input {
  background: #ffffff;
  border-top: 2px solid var(--win-dark-gray);
  border-left: 2px solid var(--win-dark-gray);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #000;
  outline: none;
  flex-grow: 1;
  min-width: 0;
}

.win-search-input:focus {
  background: #ffffe0;
}

.win-search-btn {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  padding: 4px 12px;
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  flex-shrink: 0;
  white-space: nowrap;
}

.win-search-btn:active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  padding: 5px 11px 3px 13px;
}

/* Condensed Post Feed */
.feed-toolbar {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #ece9d8;
  border: 1px solid #7f9db9;
  padding: 4px 8px;
  margin-bottom: 10px;
  color: #222;
  display: flex;
  justify-content: space-between;
}

@media (min-width: 600px) {
  .feed-toolbar {
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 12px;
  }
}

.condensed-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.condensed-item {
  border: 1px solid #dcdcdc;
  background: #ffffff;
  padding: 10px 12px;
  transition: background-color 0.1s;
}

.condensed-item:nth-child(even) {
  background: var(--feed-stripe);
}

.condensed-item:hover {
  border-color: #7f9db9;
  background: #f0f4f9;
}

.condensed-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.condensed-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

@media (min-width: 600px) {
  .condensed-title {
    font-size: 16px;
  }
}

.condensed-title a {
  color: #0000aa;
  text-decoration: none;
}

.condensed-title a:hover {
  text-decoration: underline;
  color: #cc0000;
}

.condensed-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

/* Post Row Layout with Thumbnail */
.condensed-content-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.condensed-thumb-link {
  flex-shrink: 0;
  display: inline-block;
}

.condensed-thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  background: #d4d0c8;
  padding: 1px;
  display: block;
}

@media (min-width: 600px) {
  .condensed-thumb {
    width: 80px;
    height: 60px;
  }
}

.condensed-thumb:hover {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
}

.condensed-text-area {
  flex-grow: 1;
  min-width: 0;
}

.condensed-desc {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  margin: 0 0 6px 0;
  word-break: break-word;
}

.condensed-desc a.more-link {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 6px;
  font-weight: 700;
}

/* -------------------------------------------------------------
   3D Beveled Category & Tag Chips (Fixed Specificity & Display)
   ------------------------------------------------------------- */
.retro-taxonomy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

a.tax-badge,
a.tax-badge:visited {
  display: inline-flex !important;
  align-items: center !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  padding: 3px 7px !important;
  background-color: var(--win-gray) !important;
  border-top: 2px solid var(--win-white) !important;
  border-left: 2px solid var(--win-white) !important;
  border-right: 2px solid var(--win-black) !important;
  border-bottom: 2px solid var(--win-black) !important;
  box-shadow: 1px 1px 0px var(--win-dark-gray) !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
}

a.tax-badge.cat,
a.tax-badge.cat:visited {
  color: #000080 !important;
  font-weight: 700 !important;
}

a.tax-badge.tag,
a.tax-badge.tag:visited {
  color: #222222 !important;
  font-weight: 500 !important;
}

a.tax-badge:hover {
  background-color: #000080 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-top: 2px solid #1084d0 !important;
  border-left: 2px solid #1084d0 !important;
  border-right: 2px solid var(--win-black) !important;
  border-bottom: 2px solid var(--win-black) !important;
}

a.tax-badge:active {
  border-top: 2px solid var(--win-black) !important;
  border-left: 2px solid var(--win-black) !important;
  border-right: 2px solid var(--win-white) !important;
  border-bottom: 2px solid var(--win-white) !important;
  padding: 4px 6px 2px 8px !important;
}

/* Single Post / Page Layout */
.single-post-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

@media (min-width: 600px) {
  .single-post-title {
    font-size: 24px;
  }
}

.single-post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #444;
  background: #f4f4f4;
  padding: 6px 10px;
  border: 1px dotted #ccc;
  display: block;
  margin-bottom: 16px;
}

.single-meta-row {
  margin-bottom: 6px;
}

.single-featured-wrap {
  margin-bottom: 16px;
}

.single-featured-img {
  max-width: 100%;
  height: auto;
  border-top: 2px solid var(--win-dark-gray);
  border-left: 2px solid var(--win-dark-gray);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 2px;
  background: #ffffff;
}

.single-post-content {
  font-size: 14.5px;
  line-height: 1.65;
}

.single-post-content p {
  margin: 0 0 16px 0;
}

.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 14px;
  padding: 4px 8px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  text-decoration: none;
  color: #000;
}

.back-link:hover {
  background: #d4d0c8;
}

/* Code & Pre */
pre, code {
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (min-width: 600px) {
  pre, code {
    font-size: 13px;
  }
}

code {
  background: #efefef;
  padding: 2px 5px;
  border: 1px solid #d4d4d4;
}

pre {
  background: #f8f8f8;
  border: 2px inset #999;
  padding: 12px;
  line-height: 1.5;
  overflow-x: auto;
}

img {
  max-width: 100%;
  height: auto;
  border: 1px solid #888;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Status Bar & Badges */
.win-status-bar {
  background: var(--win-gray);
  border-top: 1px solid var(--win-dark-gray);
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #333;
  display: flex;
  justify-content: space-between;
  margin: 12px -14px -12px -14px;
}

@media (min-width: 600px) {
  .win-status-bar {
    margin: 16px -20px -16px -20px;
    font-size: 12px;
  }
}

.badge-rack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.retro-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border: 2px outset #ffffff;
  background: #000000;
  color: #00ff66;
  text-decoration: none;
  letter-spacing: 0.5px;
}
