/* ================================================
   PAGES.CSS — styles for bio, gallery, arcadia, portals
   Link this alongside style.css on every page.
   ================================================ */

/* ── Page headings ── */
.page-title {
  text-align: center;
  padding: 20px 0 10px;
  font-size: clamp(10px, 2vw, 15px);
  color: #d0b0ff;
  text-shadow: 0 0 10px var(--accent), 0 0 28px var(--accent-dim);
  letter-spacing: 4px;
}

/* ════════════════════════════════
   BIO PAGE
   ════════════════════════════════ */

#bio-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

@media (max-width: 700px) {
  #bio-top { grid-template-columns: 1fr; }
}

#bio-image-panel img {
  width: 100%;
  border: 2px solid var(--border);
  image-rendering: pixelated;
  display: block;
}

#bio-image-panel .bio-img-caption {
  font-size: 8px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 8px;
  line-height: 2;
}

#bio-about p {
  font-size: 10px;
  color: var(--text-body);
  line-height: 2.4;
  margin-bottom: 10px;
}

#bio-about p:last-child { margin-bottom: 0; }

#bio-interests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  #bio-interests { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  #bio-interests { grid-template-columns: 1fr; }
}

.interest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interest-list li {
  font-size: 10px;
  color: var(--text-body);
  line-height: 2.4;
  padding: 3px 0;
  border-bottom: 1px solid var(--border-soft);
}

.interest-list li:last-child { border-bottom: none; }

.interest-list li::before {
  content: "✦ ";
  color: var(--accent-dim);
}

/* ════════════════════════════════
   GALLERY PAGE
   ════════════════════════════════ */

.gallery-year-section {
  margin-bottom: 24px;
}

.gallery-year-label {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}

.gallery-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-cat-block {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 3px 3px 0 var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.1s, transform 0.1s;
  overflow: hidden;
}

.gallery-cat-block:hover {
  box-shadow: 5px 5px 0 var(--accent-dim);
  transform: translate(-1px, -1px);
}

.gallery-cat-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  background: var(--bg-dark);
}

.gallery-cat-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-faint);
}

.gallery-cat-label {
  background: var(--bg-header);
  border-top: 2px solid var(--border);
  padding: 6px 8px;
  font-size: 10px;
  color: var(--text);
  letter-spacing: 1px;
  text-align: center;
}

.gallery-cat-count {
  font-size: 8px;
  color: var(--accent-dim);
  margin-top: 2px;
}

/* ── Lightbox ── */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-box {
  position: relative;
  max-width: 860px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#lightbox-title {
  font-family: var(--font);
  font-size: 12px;
  color: #d0b0ff;
  letter-spacing: 2px;
  text-align: center;
}

#lightbox-media-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#lightbox-media-wrap img,
#lightbox-media-wrap video {
  max-width: calc(100% - 90px);
  max-height: 65vh;
  border: 2px solid var(--border);
  display: block;
  object-fit: contain;
}

.lb-arrow {
  font-family: var(--font);
  font-size: 14px;
  background: #2a1a50cc;
  border: 2px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  padding: 8px 12px;
  flex-shrink: 0;
  transition: background 0.1s;
  line-height: 1;
}

.lb-arrow:hover { background: var(--accent-dim); color: var(--text); }

#lightbox-desc {
  font-family: var(--font);
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  line-height: 2.2;
  max-width: 600px;
}

#lightbox-counter {
  font-family: var(--font);
  font-size: 8px;
  color: var(--text-faint);
}

#lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  font-family: var(--font);
  font-size: 12px;
  background: none;
  border: 2px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  padding: 6px 10px;
  z-index: 1001;
}

#lightbox-close:hover { background: var(--bg-header); }

/* ════════════════════════════════
   ARCADIA PAGE
   ════════════════════════════════ */

#arcadia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.game-card {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.1s, transform 0.1s;
  overflow: hidden;
}

.game-card:hover {
  box-shadow: 6px 6px 0 var(--accent-dim);
  transform: translate(-2px, -2px);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg-dark);
  image-rendering: pixelated;
}

.game-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.game-info {
  padding: 8px 10px 10px;
  border-top: 2px solid var(--border);
  background: var(--bg-header);
}

.game-title {
  font-size: 10px;
  color: #d0b0ff;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.game-desc {
  font-size: 8px;
  color: var(--text-dim);
  line-height: 2;
}

.game-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.game-tag {
  font-family: var(--font);
  font-size: 8px;
  background: var(--accent-dim);
  color: var(--text);
  padding: 2px 5px;
  letter-spacing: 1px;
}

/* Game modal */
#game-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

#game-modal-overlay.active { display: flex; }

#game-modal-header {
  font-family: var(--font);
  font-size: 12px;
  color: #d0b0ff;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 16px;
}

#game-modal-frame {
  border: 2px solid var(--border);
  background: #000;
  width: min(800px, 95vw);
  height: min(500px, 70vh);
}

#game-modal-close {
  position: fixed;
  top: 16px;
  right: 20px;
  font-family: var(--font);
  font-size: 12px;
  background: none;
  border: 2px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  padding: 6px 10px;
  z-index: 1001;
}

#game-modal-close:hover { background: var(--bg-header); }

/* ════════════════════════════════
   PORTALS PAGE
   ════════════════════════════════ */

#portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.portal-link-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}

.portal-link-entry:last-child { border-bottom: none; }

.portal-btn-img {
  height: 31px;
  border: 1px solid var(--border);
  image-rendering: pixelated;
  flex-shrink: 0;
}

.portal-btn-placeholder {
  height: 31px;
  width: 88px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.portal-link-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portal-link-label {
  font-size: 10px;
  color: var(--accent);
  text-decoration: underline;
}

.portal-link-desc {
  font-size: 8px;
  color: var(--text-faint);
  line-height: 1.8;
}