/* ===================================================
   LegendDrop Avis - Stylesheet
   legenddrop-avis.com
   =================================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0b0b12;
  --bg-secondary: #10101c;
  --bg-card: #161625;
  --bg-card-hover: #1c1c30;
  --bg-hero: linear-gradient(135deg, #0b0b12 0%, #1a1028 50%, #0b0b12 100%);
  --text-primary: #e8e8ed;
  --text-secondary: #a1a1b0;
  --text-muted: #6b7280;
  --accent: #FF8C42;
  --accent-hover: #ff9d5c;
  --accent-dark: #e07030;
  --accent-glow: rgba(255, 140, 66, 0.25);
  --green: #22c55e;
  --red: #ef4444;
  --gold: #ffd700;
  --blue: #3b82f6;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(255, 140, 66, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-accent: 0 4px 32px rgba(255, 140, 66, 0.15);
  --transition: 0.3s ease;
  --container: 1100px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 12px; }

p { margin-bottom: 16px; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(11, 11, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav a:hover, .nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active { color: var(--accent); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  padding: 16px 0;
  margin-top: var(--header-h);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text-secondary); }

/* --- Hero Section --- */
.hero {
  padding: 60px 0 50px;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 { margin-bottom: 16px; }
.hero h1 .highlight { color: var(--accent); }
.hero-desc { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 24px; max-width: 600px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-stat { text-align: center; }
.hero-stat .value { font-size: 1.3rem; font-weight: 800; color: var(--accent); display: block; }
.hero-stat .label { font-size: 0.78rem; color: var(--text-muted); }

/* Rating Card */
.rating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  min-width: 220px;
}

.rating-score {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.rating-max { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 10px 0;
  font-size: 1.3rem;
  color: var(--gold);
}

.rating-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 140, 66, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 140, 66, 0.05);
}

.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

.btn-icon { font-size: 1.1em; }

/* --- Sections --- */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 { margin-bottom: 12px; }
.section-title p { max-width: 600px; margin: 0 auto; color: var(--text-muted); }

.section-header {
  margin-bottom: 32px;
}

/* --- Info Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 66, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Summary Table --- */
.summary-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.summary-row {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.summary-row:last-child { border-bottom: none; }

.summary-row:hover { background: rgba(255, 255, 255, 0.02); }

.summary-label {
  width: 200px;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.summary-value {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Styled Table --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.styled-table thead {
  background: rgba(255, 140, 66, 0.08);
}

.styled-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.styled-table td {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.styled-table .highlight-row {
  background: rgba(255, 140, 66, 0.05);
}

/* --- Pros & Cons --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pros-list, .cons-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.pros-list { border-top: 3px solid var(--green); }
.cons-list { border-top: 3px solid var(--red); }

.pros-list h3, .cons-list h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.pros-list li, .cons-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.pros-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.cons-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* --- Bonus Card --- */
.bonus-highlight {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 140, 66, 0.08) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bonus-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.bonus-amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  margin: 12px 0;
}

.bonus-sub { color: var(--text-secondary); font-size: 1rem; margin-bottom: 20px; }

/* --- Code Promo Box --- */
.promo-code-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 140, 66, 0.1);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  margin: 16px 0;
}

.promo-code {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}

/* --- Payment Icons --- */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.payment-item:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* --- VIP Table --- */
.vip-tier {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Steps --- */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  padding-left: 80px;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
}

.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; }

/* --- FAQ Accordion --- */
.faq-list { display: grid; gap: 8px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #1a1028 0%, #0b0b12 50%, #1a0f0a 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; line-height: 1.6; }

.footer-links h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  margin: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-disclaimer strong { color: var(--red); }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
}

.badge-green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.badge-orange { background: rgba(255, 140, 66, 0.12); color: var(--accent); }
.badge-red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.badge-blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }

/* --- Content --- */
.content-block { margin-bottom: 48px; }
.content-block h2 { margin-bottom: 20px; }
.content-block h3 { margin-bottom: 12px; }
.content-block p + p { margin-top: 0; }

.content-block ul, .content-block ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.content-block ul { list-style: disc; }
.content-block ol { list-style: decimal; }

.content-block li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* --- Security Icons Row --- */
.security-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  flex: 1;
  min-width: 200px;
}

.security-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.security-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.security-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Game Mode Cards --- */
.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.mode-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mode-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.mode-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mode-card p { font-size: 0.85rem; margin-bottom: 0; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 11, 18, 0.98);
    backdrop-filter: blur(16px);
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  .nav.open a { padding: 12px 16px; width: 100%; }

  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .rating-card { margin: 0 auto; }

  .pros-cons { grid-template-columns: 1fr; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }

  .summary-row { flex-direction: column; gap: 4px; }
  .summary-label { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-banner { padding: 32px 20px; }

  .step { padding-left: 72px; }

  .section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 30px; }
  .hero-stats { gap: 16px; }
  .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
  .payment-grid { gap: 8px; }
  .payment-item { padding: 10px 14px; font-size: 0.8rem; }
}

/* --- Print --- */
@media print {
  .header, .footer, .btn, .cta-banner { display: none; }
  body { background: #fff; color: #000; }
  .card, .summary-table { border-color: #ccc; }
}
