/* ============================================
   Chicken Road 2.0 — Base Styles
   Light arcade theme · Mobile-first
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #eef7ff;
  --color-surface: #ffffff;
  --color-surface-2: #e2efdc;
  --color-primary: #ff6a00;
  --color-primary-hover: #e55e00;
  --color-accent: #ffcc00;
  --color-success: #35c759;
  --color-danger: #ff3b30;
  --color-road: #3b3f4a;
  --color-text: #23262e;
  --color-muted: #77808f;
  --color-border: #dce3ea;
  --color-overlay: rgba(35, 38, 46, 0.55);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Nunito', 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.14);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --max-width: 1200px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-road);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); margin-top: 1.5em; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
  max-width: 75ch;
}

.text-muted { color: var(--color-muted); }
.text-small { font-size: 0.875rem; }
.text-center { text-align: center; }

strong { font-weight: 700; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background-color: var(--color-surface);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.35);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}
.btn-success:hover {
  background: #2db34e;
  color: #fff;
}

.btn-sm {
  padding: 0.5em 1.2em;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1em 2.5em;
  font-size: 1.125rem;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-accent {
  background: var(--color-accent);
  color: var(--color-road);
}
.badge-success {
  background: rgba(53, 199, 89, 0.15);
  color: var(--color-success);
}
.badge-danger {
  background: rgba(255, 59, 48, 0.12);
  color: var(--color-danger);
}
.badge-21 {
  background: var(--color-accent);
  color: var(--color-road);
  font-size: 0.7rem;
  padding: 0.15em 0.5em;
}

/* --- Tables --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}
.table-responsive table {
  width: 100%;
  min-width: 500px;
}

.styled-table {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.styled-table th,
.styled-table td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.styled-table th {
  background: var(--color-road);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.styled-table tr:nth-child(even) {
  background: var(--color-surface-2);
}
.styled-table tr:last-child td {
  border-bottom: none;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), #ff9a44);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-lg);
}
.cta-banner h3 {
  color: #fff;
  margin-bottom: 0.5em;
  margin-top: 0;
}
.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1em;
  max-width: 100%;
}
.cta-banner .btn {
  background: #fff;
  color: var(--color-primary);
  font-weight: 800;
}
.cta-banner .btn:hover {
  background: var(--color-accent);
  color: var(--color-road);
}
.cta-banner .badge-21 {
  margin-top: 0.75em;
}

/* --- Age Gate Badge --- */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
}
.age-badge::before {
  content: '🔞';
  font-size: 1em;
}

/* --- Disclaimer --- */
.disclaimer {
  background: var(--color-surface-2);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: var(--space-lg) 0;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  color: var(--color-muted);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
}
.breadcrumb a {
  color: var(--color-muted);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}
.breadcrumb .sep {
  color: var(--color-border);
}
.breadcrumb .current {
  color: var(--color-text);
  font-weight: 600;
}

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin: var(--space-2xl) 0;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-accent);
}
.author-box .author-info h4 {
  margin-bottom: 0.2em;
  margin-top: 0;
}
.author-box .author-info .role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-road);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text);
  line-height: 1.7;
}

/* --- Pro/Con Lists --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}
.pros-cons .pros,
.pros-cons .cons {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.pros-cons h4 {
  margin-top: 0;
  margin-bottom: 0.75em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.pros-cons .pros h4 { color: var(--color-success); }
.pros-cons .cons h4 { color: var(--color-danger); }
.pros-cons li {
  padding: 0.4em 0;
  padding-left: 1.5em;
  position: relative;
  font-size: 0.95rem;
}
.pros-cons .pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.pros-cons .cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 700;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-road);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner .btn {
  flex-shrink: 0;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  border: none;
  cursor: pointer;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-3px);
}

/* --- Responsive Table Cards (mobile) --- */
@media (max-width: 600px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .section {
    padding: var(--space-2xl) 0;
  }
  h2 { margin-top: 1.5em; }
}

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
