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

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #1a1a1d;
  --accent-blue: #5b9bf5;
  --accent-blue-hover: #7ab4ff;
  --accent-blue-glow: rgba(91, 155, 245, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --text-muted: #6b6b70;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Seasonal Effects Container - Fixed to prevent scrolling */
#seasonal-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

/* Background Glow Effect */
.background-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(
    ellipse at center top,
    var(--accent-blue-glow),
    transparent 70%
  );
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 0 60px;
}

/* Update Badge */
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(91, 155, 245, 0.1);
  border: 1px solid rgba(91, 155, 245, 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.update-badge:hover {
  background: rgba(91, 155, 245, 0.15);
  border-color: rgba(91, 155, 245, 0.3);
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Title */
.title {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 400;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--bg-primary);
  border: none;
  box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-blue-glow);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Thumbnail Section */
.thumbnail-section {
  padding: 40px 0 100px;
}

.thumbnail-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.thumbnail-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    var(--accent-blue-glow),
    transparent 70%
  );
  opacity: 0.5;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.thumbnail-wrapper {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px -20px rgba(0, 0, 0, 0.7),
    0 40px 80px -40px var(--accent-blue-glow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-wrapper:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 50px 100px -40px var(--accent-blue-glow);
}

.thumbnail {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* App UI Styles */
.app-ui {
  display: flex;
  background: #1a1a1d;
  border-radius: 20px;
  overflow: hidden;
  min-height: 500px;
}

.app-sidebar {
  width: 200px;
  background: #141416;
  padding: 20px;
  border-right: 1px solid var(--border-color);
}

.app-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.app-version {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.app-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item.active {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

.app-content {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.content-panel {
  background: #111113;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
}

.panel-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.panel-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.toggle {
  width: 36px;
  height: 20px;
  background: #2a2a2d;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #666;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.toggle.on {
  background: var(--accent-blue);
}

.toggle.on::after {
  background: white;
  left: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

  .title {
    letter-spacing: -1px;
  }

  .subtitle {
    font-size: 16px;
    padding: 0 20px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .thumbnail-section {
    padding: 20px 0 60px;
  }

  .app-ui {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

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

/* Changelog Section */
.changelog-section {
  padding: 60px 0 100px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-align: center;
}

.section-title svg {
  color: var(--accent-blue);
}

.changelog-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) transparent;
}

/* Loading State */
.changelog-loading {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.loading-card {
  min-width: 320px;
  max-width: 380px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  flex-shrink: 0;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-header {
  height: 50px;
  margin-bottom: 20px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.changelog-loading.hidden {
  display: none;
}

.changelog-grid.loaded {
  animation: fadeInCards 0.5s ease-out;
}

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

.changelog-grid::-webkit-scrollbar {
  height: 8px;
}

.changelog-grid::-webkit-scrollbar-track {
  background: transparent;
}

.changelog-grid::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.changelog-grid::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.changelog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  min-width: 320px;
  max-width: 380px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.changelog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

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

.game-icon {
  font-size: 32px;
}

.game-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.game-info {
  flex: 1;
}

.game-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.version {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 500;
  background: rgba(91, 155, 245, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.changelog-date {
  font-size: 12px;
  color: var(--text-muted);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.changelog-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.changelog-list li::before {
  position: absolute;
  left: 0;
  font-size: 12px;
}

.changelog-list li.added::before {
  content: "+";
}

.changelog-list li.improved::before {
  content: "+";
}

.changelog-list li.fixed::before {
  content: "fix";
}

.changelog-list li.removed::before {
  content: "-";
}

/* Holiday Badge */
.holiday-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1001;
  animation: badgePop 0.5s ease-out, badgeFloat 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.holiday-badge.christmas {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.holiday-badge.valentines {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f9a8d4;
}

.holiday-badge.halloween {
  background: rgba(255, 107, 0, 0.2);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: #fdba74;
}

.holiday-badge.july4th {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.holiday-badge.newyear {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fde047;
}

.holiday-badge.stpatricks {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.holiday-badge.easter {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c4b5fd;
}

@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Test Panel */
.test-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1002;
}

.test-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.test-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.test-options {
  position: absolute;
  bottom: 55px;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.test-options.show {
  display: flex;
  animation: slideUp 0.2s ease-out;
}

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

.test-options button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.test-options button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Selection Styling */
::selection {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Status Section */
.status-section {
  padding: 60px 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.status-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

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

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator.online {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.degraded {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.status-indicator.offline {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.status-info {
  flex: 1;
}

.status-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.status-text {
  font-size: 12px;
  color: #22c55e;
}

.status-card:has(.status-indicator.degraded) .status-text {
  color: #f59e0b;
}

.status-card:has(.status-indicator.offline) .status-text {
  color: #ef4444;
}

.status-uptime {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 6px;
}

.status-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Team Section */
.team-section {
  padding: 60px 0;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  min-width: 200px;
  transition: all 0.3s ease;
  position: relative;
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px var(--accent-blue-glow);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  margin-bottom: 16px;
}

.team-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.team-role {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.team-role.owner {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
}

.team-role.developer {
  background: rgba(91, 155, 245, 0.15);
  color: var(--accent-blue);
}

.team-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.team-discord:hover {
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
  transform: scale(1.1);
}

/* Footer & Social Links */
.footer {
  padding: 60px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Discord */
.social-link.discord:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  color: #7289da;
}

.social-link.discord:hover svg {
  fill: #5865f2;
}

/* Twitter/X */
.social-link.twitter:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* YouTube */
.social-link.youtube:hover {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.3);
  color: #ff4444;
}

.social-link.youtube:hover svg {
  fill: #ff0000;
}

/* GitHub */
.social-link.github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.footer-info {
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-blue);
}

.footer-separator {
  color: var(--text-muted);
  margin: 0 8px;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .social-links {
    gap: 10px;
  }

  .social-link {
    padding: 12px 18px;
    font-size: 13px;
  }

  .social-link span {
    display: none;
  }

  .social-link {
    padding: 14px;
  }
}
