/* ── NMac Pro — Frontend Stylesheet ──────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  /* NMac Brand */
  --c-topbar:      #433E43;
  --c-mainnav:     #706771;
  --c-mainnav-bg:  url('../images/ui/main-menu-bg.png') repeat-x left bottom;
  --c-subnav:      #4B63B0;
  --c-footer:      #403C40;
  --c-subfooter:   #2A282A;

  /* Page */
  --c-bg:          #F4F2F4;
  --c-bg-panel:    #FFFFFF;
  --c-border:      #D4D4D4;
  --c-border-soft: #E9E6E9;

  /* Text */
  --c-txt-head:    #524D53;
  --c-txt-body:    #948A94;
  --c-txt-meta:    #9D9D9D;
  --c-txt-dark:    #333;

  /* Accent */
  --c-accent:      #4B63B0;
  --c-accent-h:    #3a4f96;
  --c-tag-bg:      #F0ECEF;
  --c-tag-txt:     #635E63;
  --c-tag-hover:   #4961AC;

  /* Fonts */
  --f-display: 'Syne', sans-serif;
  --f-body:    'Outfit', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --container: 1170px;
  --radius:    6px;
  --radius-lg: 10px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-txt-body);
  line-height: 1.6;
}

/* ── Container ───────────────────────────────────────────── */
.container-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  background: var(--c-topbar);
  position: relative;
  z-index: 200;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 16px;
}

.topbar-nav {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.topbar-nav a {
  display: block;
  padding: 0 10px;
  height: 40px;
  line-height: 40px;
  font-size: 11px;
  color: #E4D8E4;
  text-transform: uppercase;
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.topbar-nav a:hover {
  background: rgba(0,0,0,.2);
  color: #fff;
}

/* Topbar search */
.topbar-search {
  position: relative;
  flex-shrink: 0;
}

.topbar-search form {
  display: flex;
  align-items: center;
  background: url('../images/ui/search-bg.png') no-repeat 0 0;
  background-size: 194px 40px;
  width: 194px;
  height: 40px;
}

.topbar-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #E4D8E4;
  font-size: 13px;
  font-family: var(--f-body);
  padding: 0 8px 0 18px;
  width: 100%;
}

.topbar-search input::placeholder { color: rgba(228,216,228,.5); }

.topbar-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 12px 0 4px;
  color: #E4D8E4;
  display: flex;
  align-items: center;
}

.topbar-search button svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Live search dropdown */
.live-search-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  display: none;
  z-index: 999;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}

.live-search-drop.show { display: block; }

.ls-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  transition: background .15s;
  cursor: pointer;
  border-bottom: 1px solid var(--c-border-soft);
}

.ls-item:last-child { border-bottom: none; }
.ls-item:hover { background: #f8f6f8; }

.ls-thumb {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-bg);
}

.ls-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-txt-head);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-date {
  font-size: 11px;
  color: var(--c-txt-meta);
  margin-top: 2px;
}

.ls-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--c-txt-meta);
}

/* ── LOGO BAR ────────────────────────────────────────────── */
.logo-bar { background: #fff; border-bottom: 1px solid var(--c-border-soft); }

.logo-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.site-logo { flex-shrink: 0; }
.site-logo img {
  height: 60px;
  width: auto;
  transition: opacity .2s;
}
.site-logo:hover img { opacity: .85; }

/* Ticker */
.ticker-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #DDD;
  border-radius: var(--radius);
  overflow: hidden;
  height: 36px;
  flex: 1;
  min-width: 0;
  background: url('../images/ui/sizzlin-bg.png') repeat-x 0 0;
}

.ticker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 12px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  border-right: 1px solid #DDD;
  flex-shrink: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.ticker-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  animation: ticker-scroll 20s linear infinite;
  height: 20px;
  overflow: hidden;
}

.ticker-list li { height: 20px; display: flex; align-items: center; }

.ticker-list a {
  font-size: 12px;
  color: var(--c-txt-head);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
  transition: color .2s;
}
.ticker-list a:hover { color: var(--c-accent); }

@keyframes ticker-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ── MAIN NAV ────────────────────────────────────────────── */
.main-nav {
  background: var(--c-mainnav) var(--c-mainnav-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  z-index: 150;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left { display: flex; align-items: center; }

.nav-link {
  display: block;
  padding: 0 16px;
  height: 50px;
  line-height: 50px;
  font-size: 14px;
  font-family: var(--f-body);
  font-weight: 500;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: rgba(255,255,255,.8);
  transition: left .25s var(--ease), right .25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(0,0,0,.2);
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0; right: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SUB NAV ─────────────────────────────────────────────── */
.sub-nav {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav::-webkit-scrollbar { display: none; }

.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.sub-link {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #706771;
  white-space: nowrap;
  transition: color .2s, background .2s;
  letter-spacing: .02em;
  position: relative;
}

.sub-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform .22s var(--ease);
}

.sub-link:hover { color: var(--c-accent); }
.sub-link.active { color: var(--c-accent); font-weight: 600; }
.sub-link:hover::after,
.sub-link.active::after { transform: scaleX(1); }

/* ── MOBILE DRAWER ───────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--c-topbar);
  z-index: 500;
  transform: translateX(-100%);
  transition: transform .32s var(--ease);
  overflow-y: auto;
  padding: 24px 0;
}

.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-inner { padding: 0; }

.mobile-drawer a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #E4D8E4;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .18s, color .18s;
}

.mobile-drawer a:hover { background: rgba(0,0,0,.2); color: #fff; }
.mobile-drawer hr { border-color: rgba(255,255,255,.1); margin: 8px 0; }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 499;
  backdrop-filter: blur(2px);
}

.mobile-overlay.show { display: block; }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.page-wrap {
  display: flex;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 20px;
  align-items: flex-start;
}

.main-col { flex: 1; min-width: 0; }
.side-col  { width: 300px; flex-shrink: 0; }

/* ── SORTBAR ─────────────────────────────────────────────── */
.sortbar {
  background: #EEEAED url('../images/ui/sortbar-bg.png') repeat-x left bottom;
  border: 1px solid #C6BCC7;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sortbar-title {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #665E67;
}

/* ── ARTICLE CARD ────────────────────────────────────────── */
.post-list { }

.panel-wrapper {
  border-left: 1px solid var(--c-border-soft);
  border-right: 1px solid var(--c-border-soft);
}

.panel-wrapper:last-of-type .panel {
  border-bottom: 2px solid #D4D4D4;
  border-radius: 0 0 var(--radius) var(--radius);
}

.panel {
  background: var(--c-bg-panel);
  border-bottom: 1px solid var(--c-border-soft);
  padding: 16px 14px 0;
  position: relative;
  transition: background .2s var(--ease);
}

.panel:hover { background: #FAFAFA; }

.panel-inner {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* Thumbnail */
.article-img-wrap {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
}

.article-img-wrap a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), opacity .25s;
}

.panel:hover .article-thumb {
  transform: scale(1.05);
  opacity: .92;
}

.article-thumb-placeholder {
  width: 120px; height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #E9E6E9 0%, #D8C7D8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumb-placeholder svg {
  width: 40px; height: 40px;
  stroke: #B1A3B3;
  fill: none;
  stroke-width: 1.5;
}

/* Excerpt area */
.article-excerpt-wrap {
  flex: 1;
  padding: 4px 14px 12px;
  min-width: 0;
}

.article-title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-title a {
  color: var(--c-txt-head);
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title a:hover { color: var(--c-accent); }

.article-excerpt {
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-txt-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Article meta bar */
.article-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0 10px;
  border-top: 1px solid #EEE;
  margin-top: 10px;
  flex-wrap: wrap;
}

.meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 12px;
  color: #B1A3B3;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  font-family: var(--f-body);
}

.meta-btn:hover { color: var(--c-txt-head); }
.meta-btn.liked  { color: #e25; }

.meta-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.meta-btn .count {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-txt-meta);
}

.meta-date {
  font-size: 11px;
  color: var(--c-txt-meta);
  font-style: italic;
  margin-left: auto;
}

/* ARM badge on thumbnail */
.arm-badge {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--c-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  pointer-events: none;
}

/* Featured star */
.featured-mark {
  position: absolute;
  top: 6px; right: 6px;
  color: #f59e0b;
}

.featured-mark svg {
  width: 16px; height: 16px;
  fill: #f59e0b;
  stroke: none;
}

/* ── SEARCH bar inside post list ─────────────────────────── */
.list-search {
  padding: 12px 14px;
  background: #fff;
  border-left: 1px solid var(--c-border-soft);
  border-right: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
}

.list-search-form {
  display: flex;
  gap: 0;
  border: 1px solid #DDD;
  border-radius: var(--radius);
  overflow: hidden;
}

.list-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--f-body);
  background: #fff;
  color: var(--c-txt-head);
}

.list-search-form button {
  background: var(--c-accent);
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--f-body);
  font-weight: 500;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-search-form button:hover { background: var(--c-accent-h); }
.list-search-form button svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination-wrap {
  background: #EEEAED url('../images/ui/sortbar-bg.png') repeat-x left bottom;
  border: 1px solid #C6BCC7;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: #665E67;
  background: url('../images/ui/sort-button-pagination.png') no-repeat center center;
  background-size: 32px 64px;
  transition: background-position .2s, color .2s;
  padding: 0 4px;
}

.pg-link:hover { background-position: center -32px; color: var(--c-accent); }
.pg-link.active { background-position: center -32px; color: var(--c-accent); font-weight: 700; }

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

.widget {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.widget-header {
  background: #EEEAED url('../images/ui/sortbar-large-bg.png') repeat-x left bottom;
  border-bottom: 1px solid #D0C9CE;
  padding: 10px 14px 12px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #665E67;
}

.widget-body { padding: 12px 14px; }

/* Follow us */
.follow-icons {
  display: flex;
  gap: 10px;
  padding: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.follow-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  transition: transform .25s var(--ease-bounce), opacity .2s;
}
.follow-icon:hover { transform: scale(1.15); opacity: .9; }
.follow-icon.fb   { background: #1877f2; }
.follow-icon.yt   { background: #ff0000; }
.follow-icon.tw   { background: #1da1f2; }
.follow-icon.tg   { background: #26a5e4; }
.follow-icon.pin  { background: #e60023; }
.follow-icon.rss  { background: #f26522; }

/* Must read */
.must-read-links { padding: 12px 14px; }
.must-read-links p { font-size: 12px; color: var(--c-txt-meta); margin-bottom: 8px; }
.must-read-links blockquote {
  border-left: 3px solid var(--c-accent);
  padding-left: 12px;
  margin: 0;
}
.must-read-links a {
  display: block;
  font-size: 12px;
  color: var(--c-accent);
  padding: 3px 0;
  transition: color .18s, padding-left .18s;
}
.must-read-links a:hover { color: var(--c-accent-h); padding-left: 4px; }

/* Top ten */
.top-ten-list { }

.top-ten-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--c-border-soft);
  transition: background .18s;
  text-decoration: none;
}

.top-ten-item:last-child { border-bottom: none; }
.top-ten-item:hover { background: #f8f6f8; }

.top-ten-num {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 800;
  color: #D8C7D8;
  min-width: 26px;
  line-height: 1;
}

.top-ten-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-bg);
}

.top-ten-info { flex: 1; min-width: 0; }

.top-ten-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-txt-head);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}

.top-ten-item:hover .top-ten-title { color: var(--c-accent); }

.top-ten-views {
  font-size: 11px;
  color: var(--c-txt-meta);
  margin-top: 3px;
  font-family: var(--f-mono);
}

/* Recent comments */
.recent-comments { padding: 0; }
.rc-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border-soft);
  font-size: 12px;
}
.rc-item:last-child { border-bottom: none; }
.rc-author { font-weight: 600; color: var(--c-txt-head); }
.rc-on { color: var(--c-txt-meta); margin: 0 3px; }
.rc-link { color: var(--c-accent); transition: color .18s; }
.rc-link:hover { color: var(--c-accent-h); }

/* ── SINGLE POST PAGE ────────────────────────────────────── */
.single-wrap { }

.single-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.single-hero {
  position: relative;
  padding: 24px;
  border-bottom: 1px solid var(--c-border-soft);
}

.single-hero-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.single-thumb-wrap { flex-shrink: 0; }

.single-thumb {
  width: 140px; height: 140px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transition: transform .3s var(--ease);
}

.single-thumb:hover { transform: scale(1.03); }

.single-hero-info { flex: 1; min-width: 0; }

.single-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-txt-head);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.single-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.single-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-txt-meta);
}

.single-meta-item svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.app-info-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-txt-head);
  font-family: var(--f-mono);
}

.app-pill span { color: var(--c-txt-meta); font-weight: 400; }

/* Download button */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--f-body);
  margin-top: 16px;
  transition: background .2s, transform .2s var(--ease-bounce), box-shadow .2s;
  box-shadow: 0 4px 16px rgba(75,99,176,.35);
}

.download-btn:hover {
  background: var(--c-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(75,99,176,.45);
}

.download-btn:active { transform: translateY(0); }
.download-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* Post content */
.single-content {
  padding: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
}

.single-content h2,
.single-content h3 { font-family: var(--f-display); color: var(--c-txt-head); margin: 20px 0 10px; }

.single-content p { margin-bottom: 14px; }

.single-content a { color: var(--c-accent); text-decoration: underline; }

/* Screenshots */
.screenshots-section { padding: 0 24px 24px; }

.screenshots-title {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #665E67;
  margin-bottom: 12px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}

.screenshot-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.screenshot-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* ── CATEGORY PAGE HEADER ────────────────────────────────── */
.cat-header {
  padding: 8px 0 16px;
}

.cat-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-txt-head);
  margin-bottom: 2px;
}

.cat-sub { font-size: 13px; color: var(--c-txt-meta); }

/* ── SEARCH RESULTS ──────────────────────────────────────── */
.search-header {
  padding: 8px 0 16px;
}

.search-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-txt-head);
}

.search-count { font-size: 13px; color: var(--c-txt-meta); margin-top: 2px; }

/* ── 404 ─────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 60px 20px;
}

.not-found h1 {
  font-family: var(--f-display);
  font-size: 80px;
  font-weight: 800;
  color: #D8C7D8;
  line-height: 1;
  margin-bottom: 16px;
}

.not-found h2 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-txt-head);
  margin-bottom: 8px;
}

.not-found p { color: var(--c-txt-meta); margin-bottom: 24px; }

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background .2s;
}

.btn-home:hover { background: var(--c-accent-h); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { margin-top: 30px; background: var(--c-footer); }

.footer-inner {
  display: flex;
  gap: 40px;
  padding: 30px 20px;
  flex-wrap: wrap;
}

.footer-logo { flex: 1; min-width: 180px; }
.footer-logo img { margin-bottom: 12px; opacity: .8; }
.footer-logo p { font-size: 12px; color: #8A808B; line-height: 1.6; }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.footer-col-title {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8A808B;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 12px;
  color: #8A808B;
  transition: color .18s;
}

.footer-col a:hover { color: #E4D8E4; }

.subfooter {
  background: var(--c-subfooter);
  padding: 14px 0;
}

.subfooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8A808B;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.show { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-close svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* ── ANIMATIONS ──────────────────────────────────────────── */

/* Fade-in stagger for post cards */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-wrapper {
  animation: fadeInUp .4s var(--ease) both;
}

.panel-wrapper:nth-child(1)  { animation-delay: .04s; }
.panel-wrapper:nth-child(2)  { animation-delay: .08s; }
.panel-wrapper:nth-child(3)  { animation-delay: .12s; }
.panel-wrapper:nth-child(4)  { animation-delay: .16s; }
.panel-wrapper:nth-child(5)  { animation-delay: .20s; }
.panel-wrapper:nth-child(6)  { animation-delay: .24s; }
.panel-wrapper:nth-child(7)  { animation-delay: .28s; }
.panel-wrapper:nth-child(8)  { animation-delay: .32s; }
.panel-wrapper:nth-child(9)  { animation-delay: .36s; }

/* Sidebar fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.side-col { animation: fadeIn .6s .2s var(--ease) both; }

/* Like button pulse */
@keyframes likePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}

.meta-btn.pulse svg { animation: likePulse .4s var(--ease-bounce); }

/* Download button shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .page-wrap { flex-direction: column; }
  .side-col  { width: 100%; }
}

@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .nav-left   { display: none; }
  .hamburger  { display: flex; }

  .logo-bar-inner { flex-wrap: wrap; }
  .ticker-wrap    { min-width: 0; width: 100%; }

  .single-hero-inner { flex-direction: column; }
  .single-thumb { width: 100%; height: 200px; }
  .single-title { font-size: 18px; }

  .subfooter-inner { justify-content: center; text-align: center; }
  .footer-inner    { flex-direction: column; gap: 24px; }
  .footer-links    { gap: 20px; }

  .panel-inner { flex-direction: column; }
  .article-img-wrap { width: 100%; }
  .article-thumb, .article-thumb-placeholder { width: 100%; height: 160px; border-radius: var(--radius); }
}

@media (max-width: 480px) {
  .page-wrap { padding: 12px; gap: 16px; }
  .topbar-search { display: none; }
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: #C6BCC7; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A99CAB; }

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .topbar, .main-nav, .sub-nav, .site-footer,
  .side-col, .download-btn { display: none !important; }
}
