/**
 * Public site skins — layout + palette variants.
 */

/* Width knobs */
body.width-85 { --content-width: 85%; }
body.width-90 { --content-width: 90%; }
body.width-92 { --content-width: 92%; }
body.width-94 { --content-width: 94%; }
body.width-95 { --content-width: 95%; }
body.width-98 { --content-width: 98%; }
body.skin-full { --content-width: 100%; }

body.skin-full .shell,
body.skin-full .site-header-inner,
body.skin-full .site-topnav-inner,
body.skin-full .site-logo-bar-inner,
body.skin-full .site-accent-bar-inner,
body.skin-full .site-footer-grid {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* skin-a */
body.skin-a {
  /* inherits :root */
}
body.skin-a .site-logo-name { color: var(--text); }
body.skin-a .site-logo-mark {
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent), #a8c40d);
}

/* skin-b */
body.skin-b {
  --bg: #0a1628;
  --bg-elevated: #0f1e35;
  --panel: #12233b;
  --panel-2: #152840;
  --border: rgba(255, 204, 0, 0.14);
  --text: #f2f6fb;
  --muted: #9eb0c7;
  --accent: #ffcc00;
  --accent-hover: #ffe066;
  --accent-ink: #111820;
  --hot: #ffcc00;
  --hot-glow: rgba(255, 204, 0, 0.35);
  --ok: #ffcc00;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  background:
    radial-gradient(1000px 480px at 15% -8%, rgba(255, 204, 0, 0.07), transparent 55%),
    radial-gradient(800px 400px at 90% 0%, rgba(40, 120, 220, 0.12), transparent 50%),
    var(--bg);
}

body.skin-b .site-accent-bar {
  background: var(--accent);
  color: #111;
  font-weight: 800;
}

body.skin-b .site-logo-bar {
  background: linear-gradient(180deg, #0c1a2e 0%, #0a1628 100%);
  border-bottom: 0;
  padding: 1.85rem 0 1.35rem;
}
body.skin-b .site-logo-bar-inner { justify-content: center; }
body.skin-b .site-logo {
  flex-direction: column;
  text-align: center;
  gap: .55rem;
}
body.skin-b .site-logo-img {
  width: min(460px, 90vw);
}
body.skin-b .site-logo-tagline {
  color: #b7c9d8;
  letter-spacing: .26em;
}
body.skin-b .site-logo-text { align-items: center; }
body.skin-b .site-logo-name {
  color: var(--accent);
  text-shadow: 0 2px 18px rgba(255, 204, 0, 0.25);
  font-size: clamp(2.35rem, 5vw, 3.6rem);
}
body.skin-b .site-logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffe566, var(--accent) 55%, #c9a000);
  box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 10px 28px rgba(255, 204, 0, .28);
}

body.skin-b .site-topnav {
  background: #081422;
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.88);
}
body.skin-b .site-topnav a.is-active { color: #fff; }
body.skin-b .site-topnav a.is-active::after {
  background: var(--accent);
  height: 3px;
}

body.skin-b .hot-section-title::after,
body.skin-b .feed-section-title::after,
body.skin-b .side-widget-title::after,
body.skin-b .site-footer-heading::after {
  background: var(--accent);
  width: 2.6rem;
  height: 4px;
  box-shadow: 2.6rem 0 0 rgba(255,255,255,.1);
}

/* ALL POSTS: topnav-style thin white frame, keep blue bg */
body.skin-b .feed-section-title {
  margin: 0 0 1.15rem;
  padding: .7rem 1rem .75rem;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.88);
}

body.skin-b .hot-card {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
}
body.skin-b .hot-badge {
  background: var(--accent);
  color: #111;
  border-radius: 3px;
  box-shadow: none;
}
body.skin-b .hot-badge--latest {
  background: var(--accent);
  color: #111;
}

/* Magazine home: main grid + sidebar */
body.skin-b .home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.75rem;
  align-items: start;
}
body.skin-b .home-sidebar { display: block; }
body.skin-b .feed-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}
body.skin-b .feed-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100%;
  background: #0b111a;
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 10px;
  overflow: hidden;
}
body.skin-b .feed-item:hover {
  transform: none;
  border-color: rgba(255, 204, 0, .28);
}
body.skin-b .feed-item-main {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: .85rem .85rem .75rem;
  background: linear-gradient(165deg, #121a26 0%, #0b111a 55%, #070b12 100%);
}
body.skin-b .feed-item-media {
  border-radius: 8px;
  min-height: 0;
}
body.skin-b .feed-item-media img,
body.skin-b .post-card-placeholder {
  height: 180px;
  border-radius: 8px;
}
body.skin-b .feed-item-date { display: none; }
body.skin-b .feed-item-content {
  padding: 0;
  gap: .4rem;
}
body.skin-b .feed-cat { display: inline-flex; }
body.skin-b .feed-item-title {
  font-size: 1.12rem;
  font-weight: 700;
}
body.skin-b .feed-item-title a { color: #fff; }
body.skin-b .feed-item-title a:hover { color: var(--accent); }
body.skin-b .feed-item-icon { display: none; }
body.skin-b .feed-item-excerpt {
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.skin-b .feed-item-foot {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  padding: .55rem .85rem .65rem;
}
body.skin-b .feed-item-meta {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: .78rem;
  color: #9aa4b2;
}
body.skin-b .feed-item-meta strong { color: #fff; }
body.skin-b .btn {
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(255, 204, 0, .22);
}
body.skin-b .btn:not(.secondary) {
  color: #111;
  background: var(--accent);
}
body.skin-b .btn:not(.secondary):hover {
  color: #111;
  background: var(--accent-hover);
}
body.skin-b .btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
body.skin-b .btn.secondary:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(255, 204, 0, 0.1);
}
body.skin-b .tag-pill {
  border-radius: 3px;
  background: rgba(255, 204, 0, .12);
  border-color: rgba(255, 204, 0, .35);
  color: var(--accent);
}

/* Sidebar widgets */
body.skin-b .home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.skin-b .side-widget {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.15rem;
  margin-bottom: 0;
}
body.skin-b .side-widget-title {
  margin: 0 0 .9rem;
  font-size: .95rem;
  font-weight: 700;
}
body.skin-b .side-widget-title::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 4px;
  margin-top: .4rem;
  background: var(--accent);
  box-shadow: 2.4rem 0 0 rgba(255,255,255,.1);
}
body.skin-b .side-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
body.skin-b .side-widget-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: .65rem;
  align-items: start;
  color: var(--text);
}
body.skin-b .side-widget-row img,
body.skin-b .side-widget-ph {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  background: #0a1220;
  display: block;
}
body.skin-b .side-widget-row strong {
  display: block;
  font-size: .82rem;
  line-height: 1.3;
  font-weight: 650;
}
body.skin-b .side-widget-row time {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .72rem;
}
body.skin-b .side-widget-row:hover strong { color: var(--accent); }

body.skin-b .site-footer {
  background: #071018;
  border-top: 1px solid rgba(255, 204, 0, 0.18);
}
body.skin-b .site-footer-copy { background: #040a12; }

@media (max-width: 1100px) {
  body.skin-b .feed-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.skin-b .home-layout { grid-template-columns: 1fr; }
  body.skin-b .home-sidebar { order: 2; }
}
@media (max-width: 620px) {
  body.skin-b .feed-list { grid-template-columns: 1fr; }
}

/* skin-c */
body.skin-c {
  --bg: #1a1a1a;
  --bg-elevated: #222;
  --panel: #262626;
  --panel-2: #2c2c2c;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f0f0f0;
  --muted: #9a9a9a;
  --accent: #f0a030;
  --accent-hover: #ffb84d;
  --accent-ink: #1a1200;
  --hot: #e85d04;
  --hot-glow: rgba(240, 160, 48, 0.3);
  --ok: #f0a030;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  background: var(--bg);
}
body.skin-c .site-accent-bar { background: var(--accent); color: #111; }
body.skin-c .site-logo-bar {
  background: #151515;
  border-bottom: 2px solid var(--accent);
  padding: 1.1rem 0;
}
body.skin-c .site-logo-bar-inner { justify-content: flex-start; }
body.skin-c .site-logo-name {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
body.skin-c .site-logo-tag { display: none; }
body.skin-c .site-logo-mark {
  border-radius: 3px;
  width: 40px;
  height: 40px;
}
body.skin-c .site-topnav {
  background: #111;
  justify-content: flex-start;
}
body.skin-c .site-topnav-inner { justify-content: flex-start; }
body.skin-c .hot-card-overlay h3 {
  text-transform: none;
  font-family: var(--font-body);
  letter-spacing: 0;
}
body.skin-c .feed-item {
  border-radius: 3px;
  border-left: 3px solid var(--accent);
}
body.skin-c .btn { border-radius: 3px; }
body.skin-c .btn:not(.secondary) { color: #111; }
body.skin-c .btn.secondary {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.2);
}

/* skin-d */
body.skin-d {
  --bg: #0e0e10;
  --bg-elevated: #16161a;
  --panel: #1c1c22;
  --panel-2: #22222a;
  --border: rgba(255, 80, 80, 0.12);
  --text: #f2f2f4;
  --muted: #9b9ba8;
  --accent: #e63946;
  --accent-hover: #ff5a66;
  --accent-ink: #fff;
  --hot: #ff0033;
  --hot-glow: rgba(230, 57, 70, 0.4);
  --ok: #e63946;
  background:
    radial-gradient(800px 380px at 50% -10%, rgba(230, 57, 70, 0.14), transparent 55%),
    var(--bg);
}
body.skin-d .site-accent-bar { background: var(--accent); color: #fff; }
body.skin-d .site-logo-name { color: #fff; }
body.skin-d .site-logo-bar { border-bottom: 0; background: #121216; }
body.skin-d .feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
body.skin-d .feed-item {
  flex-direction: column;
  display: flex;
}
body.skin-d .feed-item-main {
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
}
body.skin-d .feed-item-media img,
body.skin-d .post-card-placeholder { height: 160px; }
body.skin-d .feed-cat { display: inline-flex; }
body.skin-d .btn:not(.secondary) { color: #fff; }
body.skin-d .btn.secondary { color: var(--text); }
body.skin-d .hot-badge--latest {
  background: #fff;
  color: #111;
  box-shadow: none;
}
@media (max-width: 720px) {
  body.skin-d .feed-list { grid-template-columns: 1fr; }
}

/* skin-e */
body.skin-e {
  --bg: #101010;
  --bg-elevated: #181818;
  --panel: #1e1e1e;
  --panel-2: #242424;
  --border: rgba(255, 255, 255, 0.11);
  --text: #ededed;
  --muted: #959595;
  --accent: #c41e3a;
  --accent-hover: #e23a55;
  --accent-ink: #fff;
  --hot: #c41e3a;
  --hot-glow: rgba(196, 30, 58, 0.35);
  --ok: #c41e3a;
  --radius: 2px;
  background: var(--bg);
}
body.skin-e .site-accent-bar { background: var(--accent); color: #fff; }
body.skin-e .site-topnav {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.88);
}
body.skin-e .site-topnav-inner { justify-content: flex-start; }
body.skin-e .site-logo-bar {
  border-bottom: 4px solid var(--accent);
  background: #0f0f0f;
  padding: 1.1rem 0;
}
body.skin-e .site-logo-bar-inner { justify-content: flex-start; }
body.skin-e .site-logo-name {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
body.skin-e .site-logo-mark {
  border-radius: 2px;
  width: 36px;
  height: 36px;
}
body.skin-e .btn {
  border-radius: 2px;
  box-shadow: none;
}
body.skin-e .btn:not(.secondary) { color: #fff; }
body.skin-e .btn.secondary { color: var(--text); }
body.skin-e .hot-card { border-radius: 2px; }
body.skin-e .hot-badge { border-radius: 0; }
body.skin-e .panel { border-radius: 2px; }
body.skin-e .feed-item {
  border-radius: 2px;
  border-top: 3px solid var(--accent);
}

/* Theme picker cards in ACP */
.theme-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: .65rem;
}
.theme-pick {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .7rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  cursor: pointer;
  color: var(--text);
}
.theme-pick input { margin-right: .35rem; }
.theme-pick.is-on,
.theme-pick:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 235, 16, .2);
}
.theme-pick-swatch {
  height: 2.2rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12);
}
.theme-pick-swatch--et { background: linear-gradient(90deg, #070707 40%, #c9eb10 70%, #fd005b); }
.theme-pick-swatch--vortez { background: linear-gradient(90deg, #0a1628 35%, #ffcc00 70%, #1a3a5c); }
.theme-pick-swatch--techpowerup { background: linear-gradient(90deg, #1a1a1a 45%, #f0a030); }
.theme-pick-swatch--tweaktown { background: linear-gradient(90deg, #0e0e10 45%, #e63946); }
.theme-pick-swatch--gamersnexus { background: linear-gradient(90deg, #101010 50%, #c41e3a); }
.theme-pick strong { font-size: .9rem; }
.theme-pick span { font-size: .75rem; color: var(--muted); line-height: 1.35; }
