/**
 * Deem Padel Public Pages — Shared Premium Theme
 * Used by: Landing (home), Privacy Policy, Terms of Service, FAQ, 404
 *
 * All public-facing pages share this dark glassy aesthetic with
 * Conthrax font, lime-green accents, ambient glow backgrounds,
 * and frosted glass card sections.
 */

/* ===== Conthrax Font ===== */
@font-face {
  font-family: 'Conthrax';
  src: url('/fonts/conthrax-sb.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

/* ===== Base Body ===== */
html, body {
  min-height: 100vh;
  background: linear-gradient(170deg, #080c12 0%, #0a0f18 40%, #0d1220 100%);
  color: rgba(255,255,255,0.88);
  font-family: 'Conthrax', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Ambient Glow Backgrounds ===== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.4;
  z-index: 0;
}
.ambient-glow.g1 {
  width: 500px; height: 500px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(188,242,24,0.08) 0%, transparent 70%);
}
.ambient-glow.g2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
}
.ambient-glow.g3 {
  width: 300px; height: 300px;
  top: 50%; left: 60%;
  background: radial-gradient(circle, rgba(188,242,24,0.04) 0%, transparent 70%);
}

/* Landing page uses larger, animated glows */
.ambient-glow.g1-landing {
  width: 600px; height: 600px;
  top: -250px; left: -200px;
  background: radial-gradient(circle, rgba(188,242,24,0.1) 0%, transparent 70%);
  animation: drift1 12s ease-in-out infinite;
  opacity: 1;
  filter: none;
}
.ambient-glow.g2-landing {
  width: 500px; height: 500px;
  bottom: -200px; right: -150px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  animation: drift2 15s ease-in-out infinite;
  opacity: 1;
  filter: none;
}
.ambient-glow.g3-landing {
  width: 350px; height: 350px;
  top: 40%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(188,242,24,0.05) 0%, transparent 70%);
  animation: drift3 10s ease-in-out infinite;
  opacity: 1;
  filter: none;
}

/* 404 page glow variants */
.ambient-glow.g1-error {
  width: 500px; height: 500px;
  top: -150px; right: -100px; left: auto;
  background: radial-gradient(circle, rgba(188,242,24,0.06) 0%, transparent 70%);
  animation: drift1 8s ease-in-out infinite;
  opacity: 1;
  filter: none;
}
.ambient-glow.g2-error {
  width: 400px; height: 400px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
  animation: drift2 10s ease-in-out infinite;
  opacity: 1;
  filter: none;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -30px); }
}
@keyframes drift3 {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* ===== Page Container (content pages) ===== */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== Top Bar with Back Button ===== */
.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, #080c12 60%, transparent);
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.back-btn:hover {
  border-color: rgba(188,242,24,0.3);
  color: #BCF218;
}

/* ===== Page Title (lime gradient text) ===== */
.page-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #BCF218 0%, #9FCC15 50%, #e2ff70 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Metadata (last updated, subtitle) ===== */
.last-updated,
.page-subtitle {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.page-subtitle {
  font-size: 0.68rem;
  letter-spacing: 1px;
}

/* ===== Glass Section Cards ===== */
.glass-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}
.glass-section:hover {
  border-color: rgba(188,242,24,0.12);
}

/* ===== Section Title (lime bar + text) ===== */
.section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #BCF218;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #BCF218;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(188,242,24,0.4);
}

/* ===== Section Body Text ===== */
.section-text {
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.3px;
}
.section-text strong {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* ===== Data Lists (bullet points) ===== */
.data-list {
  list-style: none;
  margin: 12px 0 0;
}
.data-list li {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  padding: 6px 0 6px 18px;
  position: relative;
  letter-spacing: 0.3px;
  line-height: 1.6;
}
.data-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(188,242,24,0.4);
  box-shadow: 0 0 6px rgba(188,242,24,0.2);
}

/* ===== Contact Card ===== */
.contact-glass {
  background: linear-gradient(135deg, rgba(188,242,24,0.06) 0%, rgba(188,242,24,0.02) 100%);
  border: 1px solid rgba(188,242,24,0.15);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.contact-glass a {
  color: #BCF218;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.contact-glass a:hover { opacity: 0.7; }

/* ===== Divider ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  margin: 8px 0;
}

/* ===== FAQ Accordion ===== */
.faq-category { margin-bottom: 28px; }

.category-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(188,242,24,0.5);
  margin-bottom: 12px;
  padding-left: 4px;
}

.faq-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: rgba(188,242,24,0.12); }
.faq-item.open { border-color: rgba(188,242,24,0.2); }

.faq-question {
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.4px;
  user-select: none;
  transition: color 0.2s;
}
.faq-question:hover { color: #BCF218; }

.faq-arrow {
  transition: transform 0.3s ease;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: #BCF218;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-content {
  padding: 0 22px 22px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 16px;
}
.faq-answer-content a {
  color: #BCF218;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.faq-answer-content a:hover { opacity: 0.7; }

/* FAQ contact glass gets extra top margin */
.faq-category + .contact-glass { margin-top: 32px; }
.contact-glass p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
  line-height: 1.8;
}

/* ===== Landing Page Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  max-width: 440px;
  width: 100%;
}

.logo-container {
  width: 110px;
  height: 110px;
  margin: 0 auto 36px;
  position: relative;
}

.logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(188,242,24,0.12);
  animation: ring-pulse 4s ease-in-out infinite;
}
.logo-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(188,242,24,0.06);
}

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

.logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(188,242,24,0.15));
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #BCF218 0%, #e2ff70 40%, #BCF218 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.features-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.feature-pill svg {
  width: 14px;
  height: 14px;
  color: rgba(188,242,24,0.5);
  flex-shrink: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 44px;
  background: linear-gradient(135deg, #BCF218 0%, #a8d916 100%);
  color: #080c12;
  font-family: 'Conthrax', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(188,242,24,0.2), 0 0 60px rgba(188,242,24,0.1);
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(188,242,24,0.35), 0 0 80px rgba(188,242,24,0.15);
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn:active { transform: translateY(0); }
.cta-btn svg { width: 16px; height: 16px; }

.footer-links {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  z-index: 10;
  background: linear-gradient(to top, rgba(8,12,18,0.8) 0%, transparent 100%);
}
.footer-links a {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(188,242,24,0.5); }

@supports (-webkit-touch-callout: none) {
  .footer-links {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* ===== 404 Error Page ===== */
.error-container {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.error-glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 50px 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.error-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
}
.error-logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(188,242,24,0.15);
  animation: ring-pulse 3s ease-in-out infinite;
}
.error-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: contain;
}

.error-code {
  font-family: 'Conthrax', sans-serif;
  font-size: 120px;
  font-weight: 600;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #BCF218 0%, #8bc406 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-family: 'Conthrax', sans-serif;
  font-size: 18px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 16px;
}

.error-message {
  font-size: 15px;
  color: #64748b;
  max-width: 360px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: #BCF218;
  color: #0a0f18;
  font-family: 'Conthrax', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(188,242,24,0.15);
}
.btn-home:hover {
  background: #d4ff4a;
  box-shadow: 0 0 40px rgba(188,242,24,0.25);
  transform: translateY(-2px);
}
.btn-home svg { width: 16px; height: 16px; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .error-code { font-size: 80px; letter-spacing: 4px; }
  .error-title { font-size: 14px; letter-spacing: 4px; }
  .error-glass-card { padding: 36px 24px; }
  .error-logo-wrap { width: 90px; height: 90px; }
  .error-logo { width: 90px; height: 90px; }
}