/* ======================================
   RETRO BOWL SITE THEME — by StudyHup
   American Football Style Red-Blue Theme
   Works with generate_full_build.php
====================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&family=Inter:wght@400;600&display=swap');

:root {
  --bg: radial-gradient(circle at top, #0a0d1a 0%, #000308 100%);
  --accent: #ff3b3f;
  --accent2: #0077ff;
  --gold: #ffc400;
  --card: #0e1424;
  --text: #f7f9fc;
  --radius: 14px;
  --shadow: 0 0 20px rgba(255,59,63,0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Header ---- */
header {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  padding: 25px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 25px rgba(255,59,63,0.5);
}

h1 {
  margin: 0;
  font-size: 26px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255,196,0,0.6);
}

/* ---- Grid (Homepage) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid a {
  display: block;
  text-decoration: none;
  background: linear-gradient(160deg, #10182c, #0d1325);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid #18213c;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255,59,63,0.5);
  border-color: var(--accent);
}

.grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 2px solid rgba(255,255,255,0.05);
}

.grid h3 {
  font-size: 16px;
  color: #fff;
  margin: 14px;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

/* ---- Game Page ---- */
.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto;
  padding: 0 15px;
  max-width: 1000px;
}

.back {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 10px;
}
.back:hover { text-decoration: underline; }

.game-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 30px auto;
}

.game-frame.portrait {
  aspect-ratio: 9 / 16;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---- Fullscreen Button ---- */
.fullscreen-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 10px rgba(255,59,63,0.4);
}

.fullscreen-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,59,63,0.7);
}

/* ---- Article ---- */
.article {
  max-width: 800px;
  margin-top: 40px;
  padding: 25px;
  background: linear-gradient(160deg, #0e1424, #121b33);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(255,59,63,0.15);
  font-size: 16px;
  line-height: 1.8;
}

.article h2 {
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Footer ---- */
footer {
  background: #0d1325;
  text-align: center;
  padding: 40px 20px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -5px 20px rgba(255,59,63,0.3);
}

footer p {
  font-size: 14px;
  color: #9aa4b5;
  margin: 0 0 10px;
}

.footer-links a {
  color: #9aa4b5;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
}
.footer-links a:hover { color: var(--accent2); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .game-frame { height: 70vh; aspect-ratio: auto; }
  .fullscreen-btn { bottom: 10px; right: 10px; font-size: 12px; }
  h1 { font-size: 22px; }
}
