/* ============================================
   THE SOLO STUDIO — Design System
   Font: Kenney Future Narrow
   Theme: White, Black & Grey — All text white
   Multi-page layout
   ============================================ */

/* --- Font Face --- */
@font-face {
  font-family: 'Kenney Future';
  src: url('../Kenney Future Narrow.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #111111;
  --bg-tertiary: #161616;
  --bg-card: rgba(22, 22, 22, 0.85);
  --bg-card-hover: rgba(32, 32, 32, 0.95);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;

  --grey-mid: #3a3a3a;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --font-primary: 'Kenney Future', 'Orbitron', sans-serif;
  --font-body: 'Kenney Future', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.06);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.7);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-mid) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/images/main-bg.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--grey-mid); border-radius: 4px; }

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--text-secondary); }

img { max-width: 100%; display: block; }

/* --- Typography — ALL WHITE --- */
h1, h2, h3, h4, h5, h6,
p, span, div, li, label, strong, em, b, i, blockquote {
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--grey-mid);
  margin: var(--space-sm) auto 0;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section, .page-section {
  padding: var(--space-3xl) 0;
  position: relative;
  min-height: calc(100vh - 140px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}
.nav-links a {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: width var(--transition-base);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* ======================================
   TEXTURED BUTTONS
   ====================================== */
.btn-textured {
  display: inline-block;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: transform 0.1s ease;
}
.btn-textured-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 200px;
  min-height: 52px;
  padding: 0.6rem 2rem;
}
.btn-textured-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.btn-textured-bg.idle { opacity: 1; }
.btn-textured-bg.hover { opacity: 0; position: absolute; }
.btn-textured-bg.pressed { opacity: 0; position: absolute; }
.btn-textured:hover .btn-textured-bg.idle { opacity: 0; }
.btn-textured:hover .btn-textured-bg.hover { opacity: 1; }
.btn-textured:active .btn-textured-bg.idle { opacity: 0; }
.btn-textured:active .btn-textured-bg.hover { opacity: 0; }
.btn-textured:active .btn-textured-bg.pressed { opacity: 1; }
.btn-textured:active { transform: scale(0.97); }
.btn-textured-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  pointer-events: none;
  white-space: nowrap;
}
.btn-textured.btn-small .btn-textured-inner {
  min-width: 150px;
  min-height: 40px;
  padding: 0.4rem 1.5rem;
}
.btn-textured.btn-small .btn-textured-label { font-size: 0.65rem; }

/* --- Hero (Home / Play Demo) --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  min-height: 2.5rem;
}

.hero-tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--text-primary);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-secondary-link {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-primary);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color var(--transition-fast);
}
.hero-secondary-link:hover { color: var(--text-primary); }

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-text p {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
}
.about-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--text-primary);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-emblem {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.about-emblem::before {
  content: '🎮';
  font-size: 5rem;
  filter: grayscale(100%) brightness(1.5);
}
.about-emblem::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: spin 20s linear infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Games Page --- */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--grey-mid);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}
.game-card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.game-card:hover .game-card-image {
  transform: scale(1.03);
}
.game-card-image-wrapper { overflow: hidden; position: relative; }
.game-card-body {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}
.game-card-title {
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.game-card-genre {
  font-size: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.game-card-desc {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

/* --- News Page --- */
.news-timeline {
  max-width: 700px;
  margin: 0 auto;
}
.news-item {
  display: flex;
  gap: var(--space-md);
  position: relative;
}
.news-dot {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--grey-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.news-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-base);
}
.news-card:hover {
  border-color: var(--grey-mid);
  box-shadow: var(--shadow-glow);
}
.news-date {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.news-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.news-desc {
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* --- Team Page --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grey-mid);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--grey-mid);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}
.team-card:hover::before { opacity: 1; }
.team-card.lead { border-color: rgba(255, 255, 255, 0.15); }
.team-card.lead::before {
  opacity: 1;
  background: var(--text-primary);
}
.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  border: 1px solid var(--bg-glass-border);
  transition: border-color var(--transition-base);
}
.team-card:hover .team-avatar { border-color: var(--grey-mid); }
.team-name {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.team-role {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}
.team-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.team-social a:hover { color: var(--text-secondary); }
.team-social svg { width: 16px; height: 16px; }

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  padding: var(--space-lg) 0;
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.footer-brand {
  font-family: var(--font-primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}
.footer-links a:hover { opacity: 0.7; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* --- Auth Page --- */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-container {
  width: 100%;
  max-width: 480px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.auth-tabs {
  display: flex;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--grey-mid);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.auth-tab.active, .auth-tab:hover {
  color: var(--text-primary);
}
.auth-tab.active {
  border-bottom: 2px solid var(--text-primary);
}
.auth-form {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
}
.auth-form.active {
  display: flex;
}
.auth-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.form-group input, .form-group select, .form-group textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 15px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--grey-mid);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.btn-primary, .btn-delete {
  background-image: url('../assets/images/btn-idle.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.btn-primary {
  color: var(--bg-primary);
  padding: 12px;
  margin-top: 10px;
}
.btn-delete {
  padding: 8px 12px;
  font-size: 0.75rem;
  margin-top: 10px;
  color: #cc3333;
}
.btn-primary:hover, .btn-delete:hover {
  opacity: 0.8;
}
.btn-primary.btn-danger {
  color: #ff5555;
}
.error-msg {
  color: #ff5555;
  font-size: 0.85rem;
  margin: 0;
}
.success-msg {
  color: #55ff55;
  font-size: 0.85rem;
  margin: 0;
}

/* --- Dynamic News Post UI --- */
.news-composer {
  background: var(--bg-card);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.news-composer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--bg-glass-border);
}

/* --- Page spacer for fixed navbar --- */
.page-spacer {
  height: 70px;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 968px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-stats { justify-content: center; }
  .about-visual { order: -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(20px);
    padding: var(--space-md);
    border-bottom: 1px solid var(--bg-glass-border);
    gap: var(--space-xs);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .btn-textured-inner { min-width: 160px; min-height: 44px; }
}
