/* ============================================
   Resistance Demoscene - New Website
   ============================================ */

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

:root {
  --bg-primary: #0a0c0f;
  --bg-secondary: #12151a;
  --bg-card: #181c22;
  --bg-card-hover: #1e2329;
  --accent: #e63946;
  --accent-glow: rgba(230, 57, 70, 0.4);
  --accent-soft: #ff4a4e;
  --text-primary: #e8e8e8;
  --text-secondary: #8a9099;
  --text-muted: #555b63;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(230, 57, 70, 0.3);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff8a8d;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ============================================
   Background Effects
   ============================================ */

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(230, 57, 70, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 57, 70, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Header
   ============================================ */

.Header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px 0;
}

.Header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-secondary);
  padding: 40px 40px 0;
  position: relative;
  overflow: hidden;
}

.Header-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(230, 57, 70, 0.2);
}

.tagline {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: -5px;
}

/* ============================================
   Navigation
   ============================================ */

.Nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 20px 0 0;
  flex-wrap: wrap;
}

.Nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all 0.25s;
  position: relative;
}

.Nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.Nav a.active {
  color: white;
  background: var(--bg-primary);
}

.Nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================
   Mobile Navigation
   ============================================ */

.MobileNav {
  display: none;
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.MobileNav select {
  width: 100%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9099' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* ============================================
   Content Area
   ============================================ */

.Content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.Content-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 40px;
  min-height: 400px;
}

/* ============================================
   Page Sections (SPA-style)
   ============================================ */

.Page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.Page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Home Page
   ============================================ */

.Welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.Welcome-text p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 17px;
}

.Welcome-text p:first-child {
  font-size: 19px;
  color: var(--text-primary);
}

.Welcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.Stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.Stat-card .number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-soft);
  line-height: 1;
}

.Stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}

/* ============================================
   Section Headings
   ============================================ */

.Section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.Section-header h2 {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.Section-header .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-accent), transparent);
}

/* ============================================
   News
   ============================================ */

.News-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.News-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
  cursor: default;
}

.News-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.News-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.News-card-body {
  padding: 20px;
}

.News-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.News-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.News-card-text {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============================================
   Platforms Grid
   ============================================ */

.Platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.Platform-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: all 0.3s;
}

.Platform-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.Platform-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, filter 0.3s;
}

.Platform-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.Platform-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.Platform-card .name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.Platform-card .count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   Releases Grid
   ============================================ */

.Releases-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.Releases-header .back-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.Releases-header .back-btn:hover {
  color: white;
  border-color: var(--accent);
  background: rgba(230, 57, 70, 0.1);
}

.Releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.Release-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.Release-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.Release-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.Release-card-body {
  padding: 16px;
}

.Release-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.Release-card-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Release Detail
   ============================================ */

.Release-detail {
  display: none;
}

.Release-detail.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.Release-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.Release-detail-header h2 {
  font-size: 24px;
}

.Release-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.Release-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.Release-preview img,
.Release-preview video {
  width: 100%;
  display: block;
}

.Release-info {
  padding: 0;
}

.Release-info h3 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.Info-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.Info-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.Info-row .label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 90px;
}

.Info-row .value {
  color: var(--text-primary);
}

.Release-links {
  margin-top: 30px;
}

.Release-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.2s;
  margin-right: 12px;
  margin-bottom: 12px;
}

.Release-links a:hover {
  background: #ff3344;
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.Release-links a.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.Release-links a.secondary:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

/* ============================================
   Members
   ============================================ */

.Members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.Member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all 0.3s;
}

.Member-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.Member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-primary);
}

.Member-info {
  flex: 1;
  min-width: 0;
}

.Member-handle {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.Member-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.Member-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-soft);
  background: rgba(230, 57, 70, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

.ExMembers {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.ExMembers h3 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ExMembers-list {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 2;
}

/* ============================================
   Sources
   ============================================ */

.Sources-content {
  text-align: center;
  padding: 60px 20px;
}

.Sources-content p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 30px;
}

.GitHub-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.GitHub-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.GitHub-link svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* ============================================
   Footer
   ============================================ */

.Footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.Footer a {
  color: var(--text-secondary);
}

.Footer a:hover {
  color: var(--accent-soft);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .Welcome {
    grid-template-columns: 1fr;
  }

  .Release-detail-content {
    grid-template-columns: 1fr;
  }

  .News-grid {
    grid-template-columns: 1fr;
  }

  .Content-inner {
    padding: 24px;
  }

  .logo-text {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .Nav {
    display: none;
  }

  .MobileNav {
    display: block;
    padding-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .Content {
    padding: 0 12px 40px;
  }

  .Content-inner {
    padding: 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .Header {
    padding: 20px 12px 0;
  }

  .Header-inner {
    padding: 24px 20px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .logo-text {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .Welcome-stats {
    grid-template-columns: 1fr;
  }

  .Platforms-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .Members-grid {
    grid-template-columns: 1fr;
  }
}
