﻿/* ============================================================
   Sudeki fan site — 2005 game-site aesthetic
   Width: 800px (matches header image)
   ============================================================ */

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

body {
  background: #111 url('../assets/background.png') center top / cover fixed;
  color: #ccc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

a            { color: #fff; text-decoration: none; }
a:hover      { color: #fff; text-decoration: underline; }
a:visited    { color: #fff; }

img          { border: 0; display: block; }

/* ---------- Page frame ---------- */
.page {
  width: 800px;
  margin: 20px auto 40px;
}

/* ---------- Header ---------- */
.header-wrap {
  position: relative;
  width: 800px;
}

.header-img {
  width: 800px;
  height: 150px;
}

/* ---------- Nav (clickable hot-spots baked into header image) ---------- */
.navmap a {
  position: absolute;
  top: 127px;
  height: 23px;
  display: block;
  /* transparent hit-box; subtle highlight on hover */
  transition: background 0.15s;
}
.navmap a:hover { background: rgba(255, 235, 150, 0.18); }

.nav-home        { left:   0px; width:  58px; }
.nav-story       { left:  58px; width:  65px; }
.nav-gallery     { left: 123px; width:  78px; }
.nav-development { left: 201px; width: 117px; }
.nav-guides      { left: 318px; width:  74px; }
.nav-discord     { left: 392px; width:  83px; }
.nav-reddit      { left: 475px; width:  85px; }

/* ---------- Content area ---------- */
.content {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.82);
  border: none;
  padding: 24px 28px;
  min-height: 400px;
}

/* Faded character art locked to the right, behind the text */
.content-figure {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

/* Keep text above the figure */
.content h1,
.content h2,
.content p,
.content .news-item { position: relative; z-index: 1; }

/* ---------- Content typography ---------- */
.content h1 {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #fff;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.content h2 {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 8px;
}

.content h3 {
  font-size: 12px;
  font-weight: bold;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0 6px 12px;
}

.content p {
  margin-bottom: 12px;
  color: #bbb;
}

.content p.source { text-align: right; }

/* ---------- Image gallery ---------- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 24px;
}
.gallery-item {
  width: 130px;
  text-align: center;
}
.gallery-item a { display: block; }
.gallery-item img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 1px solid #fff;
  display: block;
}
.gallery-item .caption {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #bbb;
  word-wrap: break-word;
}

/* ---------- Embedded video ---------- */
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 12px 0 20px;
  background: #000;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #fff;
  display: block;
}

/* ---------- News / article blocks ---------- */
.news-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #1e1a08;
}
.news-item:last-child { border-bottom: none; }

.news-item .thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #3a3010;
}

.news-item .thumb-placeholder {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  background: #1a1a0a;
  border: 1px solid #3a3010;
}

.news-item h3 {
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}

.news-item p { margin: 0; }

/* ---------- Footer ---------- */
.footer {
  background: #000;
  border: none;
  border-top: 2px solid #fff;
  padding: 10px 14px;
  font-size: 11px;
  color: #555;
  text-align: center;
}