@import url('https://fonts.googleapis.com/css?family=Orbitron:wght@500;700&display=swap');

:root {
  --primary: #19fff2;
  --secondary: #16181e;
  --accent: #0ff0fc;
  --card-bg: #22242c;
  --text: #eef6fb;
  --shadow: 0 2px 16px rgba(25,255,242,0.08);
}

/* Smooth in-page scrolling for nav anchors */
html { scroll-behavior: smooth; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Orbitron', Arial, sans-serif;
  background: linear-gradient(135deg, #16181e 60%, #20232b 100%);
  color: var(--text);
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--primary);
}

/* Logo size made reasonable for header and responsive */
.logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
nav a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.2s;
  letter-spacing: 1px;
}

nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1100px;
  margin: 2rem auto 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  color: var(--primary);
  margin-top: 0;
}

.games-grid, .assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.game-item, .asset-item {
  background: #181a20;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s;
}

.game-item:hover, .asset-item:hover {
  transform: translateY(-4px) scale(1.03);
  border: 1px solid var(--primary);
}

iframe {
  width: 100%;
  height: 260px;
  border-radius: 6px;
  background: #000;
  margin-bottom: 0.5rem;
}

/* Make embedded content a bit more flexible on tall screens */
@media (min-height: 900px) {
  iframe { height: 360px; }
}

.asset-item img, .asset-item video {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  color: #888;
  font-size: 1rem;
  letter-spacing: 2px;
  background: var(--card-bg);
  border-top: 2px solid var(--primary);
  margin-top: 2rem;
}

/* --- Play Store preview styles (compact / half-size adjustments) --- */

/* Container for the playstore section */
.playstore-preview {
  margin: 16px auto;
  padding: 8px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Grid in case you add more cards later */
/* Made max-width smaller so the whole section appears half as large visually */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 560px; /* reduced from 1120 to ~half */
}

/* Card link wrapper */
.ps-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Card */
/* Keep card compact: reduce padding, thumbnail height and fonts */
.ps-card {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(34,36,44,0.85), rgba(28,30,36,0.9));
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0; /* overlay will provide inner padding */
}
.ps-card:hover, .ps-card:focus { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.10); outline: none; }

/* Thumbnail reduced to make section much smaller */
.ps-thumb {
  width: 100%;
  height: 90px; /* reduced from 160 -> 90 */
  object-fit: cover;
  display: block;
  background: #f6f6f6;
}

/* Overlay (text area) */
.ps-overlay { padding: 10px; text-align: left; }
.ps-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--primary); }
.ps-sub { color: #9fb1b7; font-size: 0.85rem; margin-bottom: 6px; }
.ps-badge { height: 22px; display: inline-block; }

/* Accessibility: keyboard focus style */
.ps-card[tabindex="0"]:focus { box-shadow: 0 0 0 3px rgba(25,255,242,0.12); transform: translateY(-3px); }

/* Responsive adjustments for small screens */
@media (max-width: 420px) {
  .ps-thumb { height: 70px; }
  .ps-grid { gap: 10px; padding: 0 8px; max-width: 420px; }
  .ps-title { font-size: 0.95rem; }
  .ps-sub { font-size: 0.82rem; }
}

/* --- Small tweaks and accessibility --- */

a { color: var(--primary); }
a:focus { outline: 3px solid rgba(25,255,242,0.12); outline-offset: 2px; }

/* Reduce the huge header logo on small screens */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .logo {
    height: 56px;
  }
  main {
    padding: 0 0.5rem;
  }
  .games-grid, .assets-grid {
    grid-template-columns: 1fr;
  }
}

/* On very small screens tighten spacing */
@media (max-width: 360px) {
  nav a { margin: 0 .6rem; font-size: 1rem; }
  .logo { height: 48px; }
  .ps-title { font-size: 0.95rem; }
  .ps-sub { font-size: 0.8rem; }
}
