/* RPG Map Landing Page Styles */
/* Inspired by Son of Oak - Fantasy/RPG aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-dark: #1a1a1a;
  --bg-light: #f5f0e8;
  --bg-parchment: #e8e0d0;
  --text-dark: #1a1a1a;
  --text-light: #f5f0e8;
  --text-muted: rgba(26, 26, 26, 0.7);
  --text-muted-light: rgba(245, 240, 232, 0.7);
  --gold: #c9a227;
  --gold-dark: #8b7355;
  --accent: #8b4513;
  --border-gold: rgba(201, 162, 39, 0.4);
  
  --font-display: 'Cinzel', serif;
  --font-body: 'Crimson Text', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%),
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.1) 0%, transparent 70%),
    var(--bg-dark);
  overflow: hidden;
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.logo {
  margin: 0 0 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo-mark {
  width: clamp(140px, 20vw, 200px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.logo-wordmark {
  width: clamp(220px, 42vw, 460px);
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
}

.tagline {
  font-size: 1.375rem;
  color: var(--text-muted-light);
  margin: 0 0 3.5rem;
  font-style: italic;
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(180deg, var(--gold) 0%, #a68a1f 100%);
  color: var(--bg-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  box-shadow: 
    0 4px 20px rgba(201, 162, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(201, 162, 39, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-launch:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.25rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== LIGHT SECTIONS (Parchment style) ===== */
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
  position: relative;
}

.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ===== DARK SECTIONS ===== */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* ===== COMMON SECTION STYLES ===== */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header--spaced {
  margin-top: 3rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.05em;
}

.section-light .section-title {
  color: var(--text-dark);
}

.section-dark .section-title {
  color: var(--text-light);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== STORY ===== */
.story-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.story-content p {
  margin: 0 0 1.25rem;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-content a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 115, 85, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.story-content a:hover,
.story-content a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(201, 162, 39, 0.7);
}

/* ===== NEWS ===== */
.news-list {
  max-width: 700px;
  margin: 0 auto;
}

.news-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.news-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
}

.news-item ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted-light);
}

.news-item li {
  margin-bottom: 0.5rem;
}

/* ===== ROADMAP ===== */
.roadmap-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.roadmap-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 162, 39, 0.4);
}

.roadmap-status {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.roadmap-text {
  font-size: 1.0625rem;
  color: var(--text-light);
}

.roadmap-item.done .roadmap-text {
  color: var(--text-light);
}

.roadmap-item.planned .roadmap-text {
  color: var(--text-muted-light);
}

/* ===== FEEDBACK ===== */
.feedback-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.feedback-content > p {
  color: var(--text-muted-light);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Honeypot field - hidden from users */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(201, 162, 39, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--text-muted-light);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #d4ad2b;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline;
}

.feedback-status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  text-align: center;
}

.feedback-status:empty {
  display: none;
}

.feedback-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.feedback-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.feedback-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--gold-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
}

/* ===== SUPPORT / BUY ME A COFFEE ===== */
.support-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.support-content > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.bmc-button {
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmc-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.bmc-button img {
  height: 60px;
  width: auto;
  border-radius: 8px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  background: #111;
  color: var(--text-muted-light);
  font-size: 0.9375rem;
}

.footer p {
  margin: 0.5rem 0;
}

.footer .credits {
  font-size: 0.8125rem;
  opacity: 0.7;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.8;
}

/* ===== DECORATIVE DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .hero {
    padding: 1.5rem;
  }
  
  .logo {
    flex-direction: column;
  }

  .logo-mark {
    width: clamp(120px, 36vw, 170px);
  }

  .logo-wordmark {
    width: clamp(220px, 72vw, 360px);
  }
  
  .tagline {
    font-size: 1.125rem;
  }
  
  .btn-launch {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
  }
  
  section {
    padding: 3.5rem 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .feedback-links {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
