/* Hoodponies Shared Styles */
:root {
  --ink: #121212;
  --violet: #1f1c28;
  --ash: #c7bfbd;
  --gold: #C7B288;
  --blue: #26a0ff;
  --ink-2: #161616;
  --ink-3: #1c1c1c;
  --tray: #181818;
  --maxw: 1040px;
  --sidew: 310px;
  --shadow: 0 8px 18px rgba(0,0,0,.55);
  --banner-url: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
  color: var(--ash);
  background:
    radial-gradient(1200px 700px at 50% 10%, rgba(199,178,136,.10), transparent 60%),
    linear-gradient(180deg, var(--violet), #0a0a0a);
  padding: 22px 10px 32px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.22) 1px, transparent 2px),
    radial-gradient(circle at 74% 28%, rgba(255,255,255,.18) 1px, transparent 2px),
    radial-gradient(circle at 42% 82%, rgba(255,255,255,.20) 1px, transparent 2px),
    radial-gradient(circle at 18% 64%, rgba(199,178,136,.18) 1px, transparent 3px),
    radial-gradient(circle at 88% 70%, rgba(38,160,255,.16) 1px, transparent 3px),
    radial-gradient(circle at 55% 40%, rgba(255,255,255,.14) 1px, transparent 2px),
    radial-gradient(circle at 30% 35%, rgba(255,255,255,.12) 1px, transparent 2px),
    radial-gradient(circle at 66% 78%, rgba(255,255,255,.12) 1px, transparent 2px);
  background-size: 220px 220px, 320px 320px, 420px 420px, 520px 520px, 640px 640px, 280px 280px, 360px 360px, 480px 480px;
  opacity: .75;
  mix-blend-mode: screen;
  animation: starDrift 120s linear infinite, starTwinkle 4.5s ease-in-out infinite;
}

body.no-stars::before { display: none; }

@keyframes starDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 600px 300px, -400px 500px, 300px -600px, 0 0; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: .7; }
}

a { color: var(--ash); text-decoration: underline; text-decoration-color: rgba(199,178,136,.55); }
a:hover { color: #ffffff; text-decoration-color: var(--gold); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--ink);
  border: 1px solid rgba(199,178,136,.60);
  box-shadow: var(--shadow);
  position: relative;
}

.mast {
  position: relative;
  min-height: 170px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.25)),
    linear-gradient(120deg, rgba(31,28,40,.92), rgba(18,18,18,.88)),
    var(--banner-url);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0,0,0,.85);
}

.mast::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(260px 140px at 86% 60%, rgba(199,178,136,.55), transparent 72%),
    radial-gradient(320px 200px at 20% 18%, rgba(31,28,40,.55), transparent 70%);
  opacity: .95;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.brand { position: relative; z-index: 1; }

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 46px;
  letter-spacing: .5px;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(0,0,0,.75);
}

.brand .tag {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(199,191,189,.92);
  letter-spacing: .18em;
  text-transform: lowercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.65);
}

.nav {
  background: var(--ink-2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(199,178,136,.45);
  padding: 8px 10px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ash);
  background: var(--ink-3);
  border: 1px solid rgba(199,178,136,.45);
  border-top-color: rgba(255,255,255,.10);
  border-left-color: rgba(255,255,255,.07);
  border-right-color: rgba(0,0,0,.88);
  border-bottom-color: rgba(0,0,0,.96);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.tab .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border: 1px solid rgba(0,0,0,.85);
}

.tab[aria-current="page"],
.tab.active {
  background: #121212;
  border-color: rgba(199,178,136,.85);
}

.tab[aria-current="page"] .dot,
.tab.active .dot { background: var(--blue); }

.frame {
  background: var(--tray);
  padding: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr var(--sidew);
  gap: 12px;
  align-items: start;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--ink-3);
  border: 1px solid rgba(199,178,136,.30);
  border-top-color: rgba(255,255,255,.08);
  border-left-color: rgba(255,255,255,.05);
  border-right-color: rgba(0,0,0,.88);
  border-bottom-color: rgba(0,0,0,.96);
}

.panel .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(199,178,136,.22), rgba(0,0,0,.55));
  border-bottom: 1px solid rgba(199,178,136,.40);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.panel .hd .badge {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  background: #0f0f0f;
  border: 1px solid rgba(199,178,136,.35);
  color: rgba(199,191,189,.92);
}

.panel .bd {
  padding: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(199,191,189,.95);
  background: var(--ink-3);
}

.post + .post { margin-top: 12px; }

.post h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .2px;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(199,191,189,.70);
  margin: 0 0 10px;
}

.chip {
  padding: 2px 6px;
  border: 1px solid rgba(199,178,136,.35);
  background: #0f0f0f;
  color: rgba(199,191,189,.92);
  cursor: pointer;
}

.chip.active {
  background: rgba(199,178,136,.2);
  border-color: var(--gold);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 740px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.thumb {
  height: 86px;
  border: 1px solid rgba(199,178,136,.20);
  background: linear-gradient(180deg, #0f0f0f, #1a1a1a);
  color: rgba(199,191,189,.92);
  font-size: 11px;
  text-align: center;
  padding: 8px;
  display: grid;
  place-items: center;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(199,178,136,.28);
  background: #141414;
  color: rgba(199,191,189,.95);
}

.list a:hover {
  text-decoration: none;
  outline: 1px dashed rgba(38,160,255,.9);
  outline-offset: 2px;
}

.list small { color: rgba(199,191,189,.70); }

.divider {
  height: 1px;
  background: #000;
  opacity: .35;
  margin: 10px 0;
}

.aside-note {
  border: 1px solid rgba(199,178,136,.25);
  padding: 8px 10px;
  background: #0f0f0f;
  color: rgba(199,191,189,.95);
  margin-top: 10px;
  font-size: 12px;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 1px 5px;
  border: 1px solid rgba(199,178,136,.35);
  background: #121212;
  color: rgba(199,191,189,.95);
}

footer {
  padding: 12px 14px;
  background: var(--ink);
  border-top: 1px solid rgba(199,178,136,.45);
  color: rgba(199,191,189,.92);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.scrollbox {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.scrollbox::-webkit-scrollbar { width: 12px; }
.scrollbox::-webkit-scrollbar-track { background: #101010; border-left: 1px solid rgba(199,178,136,.18); }
.scrollbox::-webkit-scrollbar-thumb { background: rgba(199,178,136,.28); border: 1px solid rgba(0,0,0,.8); }

.searchbox {
  width: 100%;
  padding: 6px;
  background: #121212;
  color: var(--ash);
  border: 1px solid rgba(199,178,136,.45);
  font-family: inherit;
}

.pager {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.pager .tab {
  padding: 4px 9px;
  font-size: 12px;
}

/* RSS Button */
.rss-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f26522;
  color: #fff !important;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
}

.rss-btn:hover { background: #e05a1c; }

.rss-btn .rss-icon {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}

.rss-btn .rss-icon::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: #f26522;
  border-radius: 50%;
}

.rss-btn .rss-icon::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid #f26522;
  border-radius: 0 0 0 8px;
  border-top: none;
  border-right: none;
}

/* Photo/Screenshot Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border: 1px solid rgba(199,178,136,.25);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.photo-item:hover {
  transform: scale(1.02);
  border-color: var(--gold);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(199,191,189,.5);
  text-align: center;
  padding: 10px;
}

.photo-item .photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: 11px;
  color: var(--ash);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-item:hover .photo-overlay { opacity: 1; }

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.video-card {
  background: #0f0f0f;
  border: 1px solid rgba(199,178,136,.25);
  overflow: hidden;
  text-decoration: none;
}

.video-card:hover { border-color: var(--gold); }

.video-card .video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-card .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card .play-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(199,178,136,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card:hover .play-icon {
  transform: scale(1.1);
  background: var(--gold);
}

.video-card .play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid #121212;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

.video-card .video-info { padding: 10px; }

.video-card .video-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.video-card .video-meta {
  font-size: 11px;
  color: rgba(199,191,189,.7);
}

/* YouTube Banner */
.yt-banner {
  background: linear-gradient(135deg, #1f1c28 0%, #121212 50%, rgba(199,178,136,.15) 100%);
  border: 1px solid rgba(199,178,136,.35);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.yt-banner .yt-icon {
  width: 64px;
  height: 64px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-banner .yt-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}

.yt-banner .yt-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff;
}

.yt-banner .yt-info p {
  margin: 0;
  font-size: 12px;
  color: rgba(199,191,189,.8);
}

.yt-banner .yt-btn {
  margin-left: auto;
  padding: 10px 20px;
  background: #ff0000;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.yt-banner .yt-btn:hover { background: #cc0000; color: #fff; }

@media (max-width: 600px) {
  .yt-banner { flex-direction: column; text-align: center; }
  .yt-banner .yt-btn { margin-left: 0; }
}

/* Music Item */
.music-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #0f0f0f;
  border: 1px solid rgba(199,178,136,.25);
  margin-bottom: 10px;
}

.music-item:hover { border-color: var(--gold); }

.music-item .music-art {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--violet), #0a0a0a);
  border: 1px solid rgba(199,178,136,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-item .music-art .note-icon {
  font-size: 24px;
  color: var(--gold);
}

.music-item .music-info { flex: 1; min-width: 0; }

.music-item .music-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.music-item .music-meta {
  font-size: 11px;
  color: rgba(199,191,189,.7);
}

.music-item audio {
  width: 100%;
  height: 32px;
  margin-top: 8px;
}

/* Concept Cards */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.concept-card {
  background: #0f0f0f;
  border: 1px solid rgba(199,178,136,.25);
  overflow: hidden;
}

.concept-card .concept-preview {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(199,191,189,.5);
  border-bottom: 1px solid rgba(199,178,136,.15);
}

.concept-card .concept-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-card .concept-info { padding: 10px; }

.concept-card .concept-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.concept-card .concept-desc {
  font-size: 11px;
  color: rgba(199,191,189,.8);
  margin: 0;
}

.concept-card .concept-status {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 6px;
  font-size: 10px;
  background: rgba(199,178,136,.15);
  border: 1px solid rgba(199,178,136,.3);
  color: var(--gold);
}

/* Tutorial Cards */
.tutorial-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #0f0f0f;
  border: 1px solid rgba(199,178,136,.25);
  margin-bottom: 12px;
  cursor: pointer;
}

.tutorial-card:hover { border-color: var(--gold); }

.tutorial-card .tutorial-thumb {
  width: 120px;
  height: 90px;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  border: 1px solid rgba(199,178,136,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: rgba(199,191,189,.5);
}

.tutorial-card .tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-card .tutorial-info { flex: 1; }

.tutorial-card .tutorial-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.tutorial-card .tutorial-desc {
  font-size: 12px;
  color: rgba(199,191,189,.85);
  margin: 0 0 8px;
}

@media (max-width: 500px) {
  .tutorial-card { flex-direction: column; }
  .tutorial-card .tutorial-thumb { width: 100%; height: 140px; }
}

/* Screenshot specific */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.screenshot-item {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border: 1px solid rgba(199,178,136,.25);
  overflow: hidden;
  cursor: pointer;
}

.screenshot-item:hover {
  transform: scale(1.02);
  border-color: var(--blue);
}

.screenshot-item .game-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(38,160,255,.85);
  font-size: 10px;
  color: #fff;
  font-weight: 700;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid rgba(199,178,136,.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(199,178,136,.2);
  border: 1px solid rgba(199,178,136,.5);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { background: rgba(199,178,136,.4); }

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.8);
  padding: 10px 20px;
  color: var(--ash);
  font-size: 13px;
  border: 1px solid rgba(199,178,136,.3);
  max-width: 90%;
  text-align: center;
}

/* Filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-btn {
  padding: 5px 10px;
  font-size: 11px;
  background: #0f0f0f;
  border: 1px solid rgba(199,178,136,.3);
  color: var(--ash);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(199,178,136,.15);
  border-color: var(--gold);
  color: #fff;
}
