/* Eggy Car - Egg-themed sunlit style */
:root {
  --bg: #FFF8E1;
  --bg-card: #FFFFFF;
  --text: #3E2723;
  --text-secondary: #6D4C41;
  --accent: #FF8F00;
  --accent-hover: #FF6F00;
  --accent-light: #FFE082;
  --border: #FFE0B2;
  --shadow: 0 2px 12px rgba(255, 143, 0, 0.12);
  --radius: 12px;
  --header-bg: linear-gradient(135deg, #FF8F00, #FFB300, #FFD54F);
  --game-bg: #E8F5E9;
}

body.dark {
  --bg: #1A1A2E;
  --bg-card: #16213E;
  --text: #E0E0E0;
  --text-secondary: #BDBDBD;
  --accent: #FFB300;
  --accent-hover: #FFC107;
  --accent-light: #FF6F00;
  --border: #2C2C54;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --header-bg: linear-gradient(135deg, #0F3460, #533483, #E94560);
  --game-bg: #0F3460;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* Header */
header {
  background: var(--header-bg);
  color: #fff;
  text-align: center;
  padding: 28px 16px 22px;
  position: relative;
}
header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
header p {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 6px;
}

/* Controls */
.controls-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.lang-select {
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.theme-btn {
  background: var(--accent-light);
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  transition: background 0.3s;
}
.theme-btn:hover { background: var(--accent-hover); color: #fff; }

/* Game */
.game-container {
  max-width: 780px;
  margin: 20px auto;
  background: var(--game-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.game-container canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

/* Content */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

section {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}

section h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

section p { margin-bottom: 12px; color: var(--text-secondary); }

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.highlight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.highlight-card h3 { font-size: 0.95rem; margin-bottom: 5px; color: var(--accent); }
.highlight-card p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q:hover { background: var(--accent-light); }
.faq-q .arrow { transition: transform 0.3s; font-size: 0.7rem; }
.faq-q.active .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.faq-a.open { max-height: 200px; padding: 12px 18px; }

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  z-index: 999;
  max-width: 500px;
}
#cookie-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
#cookie-banner button:hover { background: var(--accent-hover); }

/* Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 1.4rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .game-container { margin: 10px 0; }
  #cookie-banner {
    left: 8px; right: 8px; max-width: none;
    transform: none; flex-direction: column; text-align: center;
  }
}
