/**
 * Copyright (c) 2025 Blackout Guild - Tibia
 * All Rights Reserved.
 *
 * Standalone TibiaKaiser marketing landing page styles.
 * Uses design tokens from design-system.css (vendored copy of the SPA tokens).
 * The only allowed raw value is --lk-gold (brand accent not in the token set).
 * Fallback literals after each var(--…) exist only because this page is
 * decoupled from the SPA build pipeline — the token names match design-system.css.
 */

/* ── Brand accent (one raw value, intentional) ─────────────────────────── */
:root {
  --lk-gold: #d4af37;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-primary, #0d0d0f);
  color: var(--text-primary, #f5f5f5);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.lk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-4, 16px) var(--spacing-6, 24px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary, #0d0d0f);
  border-bottom: 1px solid var(--border-color, #2a2a2e);
}

.lk-wordmark {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--lk-gold);
}

.lk-langs {
  display: flex;
  gap: var(--spacing-2, 8px);
}

.lk-langs button {
  background: none;
  border: none;
  color: var(--text-secondary, #aaa);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-family: inherit;
  border-radius: 4px;
  transition: color 0.15s;
}

.lk-langs button:hover {
  color: var(--text-primary, #f5f5f5);
}

.lk-langs button[aria-current="true"] {
  color: var(--lk-gold);
  font-weight: 600;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.lk-hero {
  text-align: center;
  padding: 12vh var(--spacing-6, 24px) 10vh;
  max-width: 64rem;
  margin: 0 auto;
}

.lk-hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0 0 var(--spacing-4, 16px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary, #f5f5f5);
}

.lk-sub {
  color: var(--text-secondary, #bbb);
  max-width: 42rem;
  margin: 0 auto var(--spacing-6, 24px);
  font-size: 1.1rem;
}

/* ── CTA button ─────────────────────────────────────────────────────────── */
.lk-cta {
  display: inline-block;
  background: var(--lk-gold);
  color: #111;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.15s;
}

.lk-cta:hover {
  opacity: 0.88;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
section {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--spacing-8, 48px) var(--spacing-6, 24px);
}

section:nth-child(even) {
  background: var(--bg-secondary, #17171b);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

section:nth-child(even) > * {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-6, 24px);
  padding-right: var(--spacing-6, 24px);
}

section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--spacing-4, 16px);
  color: var(--text-primary, #f5f5f5);
}

/* ── Features list ──────────────────────────────────────────────────────── */
.lk-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--spacing-3, 12px);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.lk-features li {
  background: var(--bg-secondary, #17171b);
  border: 1px solid var(--border-color, #2a2a2e);
  border-radius: 8px;
  padding: var(--spacing-4, 16px);
  color: var(--text-primary, #f5f5f5);
  position: relative;
  padding-left: calc(var(--spacing-4, 16px) + 1.4rem);
}

.lk-features li::before {
  content: "✦";
  position: absolute;
  left: var(--spacing-4, 16px);
  color: var(--lk-gold);
  font-size: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Showcase ───────────────────────────────────────────────────────────── */
.lk-shots {
  display: grid;
  gap: var(--spacing-4, 16px);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.lk-shots img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-color, #2a2a2e);
  display: block;
  background: var(--bg-secondary, #17171b);
}

/* Video wrapper — graceful degrade when source is a placeholder or missing */
.lk-video-wrap {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-color, #2a2a2e);
  overflow: hidden;
  background: var(--bg-secondary, #17171b);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lk-video-wrap video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* When video fails to load, show a subtle placeholder instead of a broken element */
.lk-video-wrap video:not([src]),
.lk-video-wrap video[src=""] {
  display: none;
}

/* ── Contact form ───────────────────────────────────────────────────────── */
#contact-form {
  display: grid;
  gap: var(--spacing-3, 12px);
  max-width: 36rem;
}

#contact-form input,
#contact-form textarea {
  background: var(--bg-secondary, #17171b);
  color: var(--text-primary, #f5f5f5);
  border: 1px solid var(--border-color, #2a2a2e);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.15s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--lk-gold);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--text-tertiary, #666);
}

#contact-form button[type="submit"] {
  background: var(--lk-gold);
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  justify-self: start;
  transition: opacity 0.15s;
}

#contact-form button[type="submit"]:hover {
  opacity: 0.88;
}

#contact-status {
  color: var(--text-secondary, #aaa);
  font-size: 0.9rem;
  min-height: 1.4em;
  margin: 0;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
#faq-list details {
  border: 1px solid var(--border-color, #2a2a2e);
  border-radius: 8px;
  padding: var(--spacing-3, 12px) var(--spacing-4, 16px);
  margin-bottom: var(--spacing-2, 8px);
  background: var(--bg-secondary, #17171b);
}

#faq-list summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary, #f5f5f5);
  list-style: none;
}

#faq-list summary::marker,
#faq-list summary::-webkit-details-marker {
  display: none;
}

#faq-list summary::before {
  content: "+ ";
  color: var(--lk-gold);
}

#faq-list details[open] summary::before {
  content: "− ";
}

#faq-list p {
  margin: var(--spacing-2, 8px) 0 0;
  color: var(--text-secondary, #bbb);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lk-foot {
  text-align: center;
  padding: var(--spacing-6, 24px);
  color: var(--text-tertiary, #666);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color, #2a2a2e);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .lk-hero {
    padding: 8vh var(--spacing-4, 16px) 6vh;
  }

  .lk-nav {
    padding: var(--spacing-3, 12px) var(--spacing-4, 16px);
  }

  section {
    padding: var(--spacing-6, 24px) var(--spacing-4, 16px);
  }

  .lk-shots {
    grid-template-columns: 1fr;
  }

  .lk-features {
    grid-template-columns: 1fr;
  }
}
