/* vixeld.com — Premium light theme */
:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-muted: #f3f4f6;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #f3f4f6;
  --color-accent: #6366f1;
  --color-accent-hover: #4f46e5;
  --color-accent-soft: #eef2ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(99, 102, 241, 0.12);
  --shadow-lg: 0 12px 32px rgba(99, 102, 241, 0.15);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.logo-btn:hover { opacity: 0.8; }

.logo-img {
  height: 2rem;
  width: auto;
}

@media (min-width: 640px) {
  .logo-img { height: 2.25rem; }
}

.header-tagline {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
}

@media (min-width: 640px) {
  .header-tagline { display: block; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(to bottom, var(--color-accent-soft), var(--color-bg));
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .hero { padding-block: 4rem; }
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-bg::before {
  width: 16rem;
  height: 16rem;
  top: -5rem;
  right: -5rem;
  background: rgba(199, 210, 254, 0.35);
}

.hero-bg::after {
  width: 12rem;
  height: 12rem;
  bottom: -4rem;
  left: -4rem;
  background: rgba(221, 214, 254, 0.3);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-favicon {
  display: block;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .hero-favicon {
    width: 4.5rem;
    height: 4.5rem;
  }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 0;
}

@media (min-width: 640px) {
  .hero-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3rem; }
}

.hero-subtitle {
  margin-top: 1rem;
  max-width: 42rem;
  margin-inline: auto;
  color: var(--color-text-muted);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.search-wrap {
  position: relative;
  max-width: 42rem;
  margin: 2rem auto 0;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder { color: var(--color-text-light); }

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Games grid */
.games-section {
  padding-block: 2.5rem;
}

@media (min-width: 640px) {
  .games-section { padding-block: 3.5rem; }
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #e0e7ff;
  box-shadow: var(--shadow-lg);
}

.game-card-image {
  aspect-ratio: 1;
  background: var(--color-surface-muted);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 640px) {
  .game-card-body { padding: 1.25rem; }
}

.game-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .game-card-title { font-size: 1.125rem; }
}

.game-card-category {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  background: var(--color-accent);
  color: white;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-download:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-download:active {
  transform: scale(0.98);
}

.btn-download svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 5rem 1rem;
}

.empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.empty-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Legal pages */
.legal-page {
  padding-block: 2.5rem 3.5rem;
  max-width: 48rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--color-accent); }

.legal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .legal-title { font-size: 1.875rem; }
}

.legal-body {
  margin-top: 2rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.legal-body > * + * { margin-top: 1.25rem; }

.legal-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 1.75rem;
}

.legal-body a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-body a:hover { text-decoration: underline; }

.legal-contact-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.legal-contact-box strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.legal-contact-box address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding-block: 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-credits { text-align: right; }
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
}

.footer-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--color-accent); }

.footer-powered {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer-address {
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-light);
}
