/* =============================================
   RAMSEEKER.COM — screen.css
   The original memory price tracker
   ============================================= */

:root {
  --bg: #f0f5ff;
  --surface: #ffffff;
  --surface2: #dce8ff;
  --border: #7799cc;
  --accent: #003399;
  --accent-hover: #002266;
  --red: #cc0000;
  --yellow-hi: #ffff99;
  --yellow-hi2: #ffff44;
  --yellow-price: #ffcc00;
  --text: #000033;
  --text-muted: #334466;
  --text-dim: #223355;
  --header-bg: #003399;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--header-bg);
  border-bottom: 4px solid #002266;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: bold;
  font-style: italic;
  color: #ffff00;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}
.logo-dot { color: #ffffff; font-style: normal; }
.logo-tld { color: #aaccff; }

.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  transition: all 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: #ffff00; border-color: #ffff00; background: rgba(255,255,0,0.1); }

/* ---- SUBHEADER ---- */
.site-subheader {
  background: var(--surface2);
  border-bottom: 2px solid var(--border);
  padding: 7px 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #0055cc;
  animation: pulse 2s infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ---- HERO ---- */
.hero {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 28px 16px 32px;
  display: grid;
  grid-template-columns: 1fr 265px;
  gap: 20px;
  align-items: start;
}
.hero-left {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.hero-left h1 { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -0.3px; }
.hero-left p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }

/* Hero featured card — freeform content edited in Ghost */
.hero-featured {
  background: var(--surface);
  border: 2px solid var(--accent);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.hero-featured p { margin-bottom: 8px; color: var(--text-muted); }
.hero-featured p:last-child { margin-bottom: 0; }
.hero-featured a { color: #0000cc; }
.hero-featured a:hover { color: var(--red); text-decoration: underline; }
.hero-featured h2, .hero-featured h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.hero-featured ul { margin: 0 0 8px 16px; }
.hero-featured li { margin-bottom: 4px; font-size: 12px; }
.hero-featured strong { font-weight: 700; color: var(--text); }

/* ---- SECTION TABS (Memory / Storage) ---- */
.section-tabs {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 28px;
  display: flex;
  gap: 4px;
}
.section-tab {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 7px 20px;
  border: 2px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  transition: all 0.1s;
}
.section-tab.active { background: var(--accent); color: #ffff00; border-color: var(--accent-hover); }
.section-tab:hover:not(.active) { background: var(--yellow-hi); color: var(--text); }

/* ---- SUB TABS ---- */
.sub-tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.tab {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 3px 3px 0 0;
  transition: all 0.1s;
  margin-bottom: -2px;
}
.tab.active { background: var(--surface); color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--surface); }
.tab:hover:not(.active) { background: var(--yellow-hi); color: var(--text); }

/* ---- MAIN LAYOUT ---- */
.main-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 32px;
  display: grid;
  grid-template-columns: 1fr 265px;
  gap: 20px;
  align-items: start;
}

/* ---- TABLE ---- */
.table-wrap {
  background: var(--surface);
  border: 2px solid var(--border);
  border-top: none;
}

.table-header {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: #ccdcff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-header h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price table injected via Ghost Admin API */
#price-table-memory table,
#price-table-storage table {
  width: 100%;
  border-collapse: collapse;
}

#price-table-memory thead th,
#price-table-storage thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
  border-right: 1px solid #002266;
}
#price-table-memory thead th:last-child,
#price-table-storage thead th:last-child { border-right: none; }
#price-table-memory thead th.right,
#price-table-storage thead th.right { text-align: right; }

#price-table-memory tbody tr,
#price-table-storage tbody tr { border-bottom: 1px solid #ccd9f0; }
#price-table-memory tbody tr:last-child,
#price-table-storage tbody tr:last-child { border-bottom: none; }
#price-table-memory tbody tr:hover,
#price-table-storage tbody tr:hover { background: #ffffcc; }
#price-table-memory tbody tr.best-value,
#price-table-storage tbody tr.best-value { background: var(--yellow-hi); }
#price-table-memory tbody tr.best-value:hover,
#price-table-storage tbody tr.best-value:hover { background: var(--yellow-hi2); }

#price-table-memory td,
#price-table-storage td { padding: 10px 12px; font-size: 13px; vertical-align: middle; }

.product-name { font-weight: 600; color: var(--text); display: block; margin-bottom: 2px; }
.product-sub { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 5px;
  vertical-align: middle;
}
.badge-best { background: var(--accent); color: #ffff00; }
.badge-hot  { background: #cc6600; color: #fff; }

.price-per-gb { font-family: Arial, Helvetica, sans-serif; font-size: 17px; font-weight: bold; color: var(--accent); text-align: right; display: block; }
.price-per-gb-label { font-family: var(--mono); font-size: 9px; color: var(--text-muted); text-align: right; display: block; }
.total-price { font-family: var(--mono); font-size: 13px; color: var(--text-dim); text-align: right; }

.change { font-family: var(--mono); font-size: 11px; text-align: right; white-space: nowrap; }
.change.up   { color: var(--red); font-weight: 600; }
.change.down { color: #006600; font-weight: 600; }
.change.flat { color: var(--text-muted); }

.buy-btn {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 12px;
  background: var(--yellow-price);
  color: #000033;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.1s;
  white-space: nowrap;
  border: 2px solid #cc9900;
}
.buy-btn:hover { background: #ffdd00; }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 14px; }

.sidebar-card { background: var(--surface); border: 2px solid var(--border); }
.sidebar-card-header {
  padding: 7px 12px;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffff00;
  font-weight: 600;
}
.sidebar-card-body { padding: 12px; }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #ccd9f0;
  font-size: 12px;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-muted); }
.stat-value { font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.stat-value.green { color: #006600; }
.stat-value.red   { color: var(--red); }

/* Newsletter */
.newsletter-blurb { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input[type="email"] {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 10px;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.newsletter-form button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 7px;
  background: var(--yellow-price);
  color: #000033;
  border: 2px solid #cc9900;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s;
}
.newsletter-form button:hover { background: #ffdd00; }
.newsletter-note { font-size: 10px; color: var(--text-muted); font-family: var(--mono); }

/* Sidebar hero card */
.sidebar-hero { border: 2px solid var(--accent); }
.sidebar-hero .sidebar-card-header { background: var(--accent); }
.sidebar-hero-body { padding: 14px 12px; }
.sidebar-hero-link { display: block; text-decoration: none; color: var(--text); }
.sidebar-hero-link:hover .sidebar-hero-title { color: var(--red); }
.sidebar-hero-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: #0000cc;
  line-height: 1.4;
  margin-bottom: 8px;
}
.sidebar-hero-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.sidebar-hero-cta {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  background: var(--yellow-price);
  color: #000033;
  border: 2px solid #cc9900;
  border-radius: 3px;
}
.sidebar-hero-link:hover .sidebar-hero-cta { background: #ffdd00; }

/* Sidebar articles */
.sidebar-articles-body { padding: 8px 12px !important; }
.sidebar-article-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #ccd9f0;
  text-decoration: none;
  color: #0000cc;
  font-size: 12px;
  line-height: 1.4;
}
.sidebar-article-link:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-article-link:hover { color: var(--red); text-decoration: underline; }
.article-date { font-family: var(--mono); font-size: 9px; color: var(--text-muted); margin-top: 2px; }

/* ---- ARTICLES SECTION ---- */
.articles-section {
  background: var(--surface2);
  border-top: 2px solid var(--border);
  padding: 32px 0;
  margin-top: 16px;
}
.articles-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.articles-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.article-card {
  background: var(--surface);
  border: 2px solid var(--border);
  transition: border-color 0.1s;
}
.article-card:hover { border-color: var(--accent); }
.article-card-link {
  display: block;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
}
.article-card-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #0000cc;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-card:hover .article-card-title { color: var(--red); }
.article-card-excerpt { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.article-card-meta { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }

/* ---- POST LAYOUT ---- */
.post-layout {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 28px 32px;
  display: grid;
  grid-template-columns: 1fr 265px;
  gap: 24px;
  align-items: start;
}
.post-content {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 28px;
}
.post-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.post-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
  margin-bottom: 10px;
}
.post-title { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.3px; }
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--text-muted); display: flex; gap: 16px; }

/* Post body typography */
.gh-content h2 { font-size: 20px; font-weight: 700; color: var(--accent); margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.gh-content h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.gh-content p { margin-bottom: 16px; line-height: 1.7; color: var(--text); }
.gh-content a { color: #0000cc; }
.gh-content a:hover { color: var(--red); }
.gh-content ul, .gh-content ol { margin: 0 0 16px 20px; }
.gh-content li { margin-bottom: 6px; line-height: 1.6; }
.gh-content strong { font-weight: 600; }
.gh-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; }
.gh-content table th { background: var(--accent); color: #fff; padding: 8px 12px; text-align: left; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.gh-content table td { padding: 8px 12px; border-bottom: 1px solid #ccd9f0; }
.gh-content table tr:hover td { background: var(--yellow-hi); }
.gh-content blockquote { border-left: 4px solid var(--accent); padding: 10px 16px; margin: 16px 0; background: var(--surface2); color: var(--text-muted); font-style: italic; }

.post-footer { margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--border); }
.post-affiliate-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tag-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
}
.post-tag-link:hover { background: var(--accent); color: #ffff00; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--header-bg);
  border-top: 3px solid #002266;
  padding: 20px 24px;
  margin-top: 16px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: #aaccff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links { display: flex; gap: 16px; justify-content: center; }
.footer-links a { color: #ffff99; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: #7799cc; }

/* ---- RESPONSIVE ---- */

/* Ghost Koenig editor width classes — required */
.kg-width-wide {
  margin-left: calc(25% - 25vw);
  margin-right: calc(25% - 25vw);
  max-width: 1000px;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}
.kg-image { max-width: 100%; height: auto; display: block; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; }
@media (max-width: 900px) {
  .main-layout,
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-nav { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .section-tabs { flex-direction: column; }
  .hero h1 { font-size: 20px; }
}
