/* Geometry Dash Review Site – Refined White Design */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-pattern: #f0f2f5;
  --text: #15171c;
  --text-muted: #5a5e68;
  --accent: #e85d04;
  --accent-soft: #ff8c42;
  --accent-glow: rgba(232, 93, 4, 0.12);
  --teal: #0d9488;
  --teal-soft: #14b8a6;
  --border: #e8eaef;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.04);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 93, 4, 0.04), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(13, 148, 136, 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}
body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-soft);
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-link:hover {
  color: var(--accent);
}
.logo-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Nav hidden by default, shown only when burger is clicked */
.nav-list {
  list-style: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 1.5rem;
  gap: 0;
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
  z-index: 99;
}
.nav-list.is-open {
  transform: translateX(0);
}
.nav-list li {
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.nav-list a {
  display: block;
  padding: 1rem 0;
  color: var(--text);
  font-weight: 500;
}
.nav-list a:hover {
  color: var(--accent);
}

/* Burger – always visible, toggles nav */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 101;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Main content width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section titles */
.section-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text);
}

/* Latest News */
.news-section {
  padding: 4rem 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(232, 93, 4, 0.2);
}
.news-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-soft);
}
.news-card .content {
  padding: 1.5rem;
}
.news-card .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.news-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.news-more {
  text-align: center;
  margin-top: 2.5rem;
}
.news-more .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.news-more .btn:hover {
  background: var(--accent-soft);
  color: #fff;
  transform: scale(1.02);
}

/* Feature blocks */
.features {
  padding: 4rem 0;
  background: var(--bg-soft);
}
.feature-grid {
  display: grid;
  gap: 3rem;
}
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}
.feature-block:hover {
  box-shadow: var(--shadow-hover);
}
.feature-block:nth-child(even) {
  direction: rtl;
}
.feature-block:nth-child(even) > * {
  direction: ltr;
}
.feature-block img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-soft);
}
.feature-block .text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.feature-block .text p {
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .feature-block,
  .feature-block:nth-child(even) {
    direction: ltr;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Game modes / icons row */
.modes-section {
  padding: 4rem 0;
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  text-align: center;
}
.mode-card {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.mode-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.25);
}
.mode-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}
.mode-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.mode-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
}

/* Reviews preview on home */
.reviews-preview {
  padding: 3.5rem 0;
  background: var(--bg);
  text-align: center;
}
.reviews-preview-text {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Trailer */
.trailer-section {
  padding: 4rem 0;
  background: var(--bg-soft);
}
.trailer-wrap {
  max-width: 840px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-hover);
}
.trailer-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

/* Download CTA */
.download-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.download-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.download-section p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.download-badges a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.download-badges a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.download-badges a:has(img) {
  padding: 0;
  background: transparent;
  border: none;
}
.download-badges a:has(img):hover {
  background: transparent;
  border: none;
}
.download-badges a img {
  display: block;
  height: auto;
  max-height: 56px;
  width: auto;
}
.download-badges img {
  height: 48px;
  width: auto;
}

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem 3rem;
  margin-bottom: 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent);
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* Page: News & inner pages */
.page-header {
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Page: About, Terms, Privacy, etc. */
.content-page {
  padding: 2.5rem 0 4rem;
  max-width: 720px;
  margin: 0 auto;
}
.content-page h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
}
.content-page p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.7;
}
.content-page ul {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.6;
}

/* Reviews page */
.reviews-section {
  padding: 2rem 0 4rem;
}
.review-summary {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.review-summary-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.reviews-list {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow-hover);
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}
.review-author {
  font-weight: 600;
  color: var(--text);
}
.review-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.review-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.review-text {
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}
.reviews-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.reviews-cta p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.reviews-cta .btn {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
}
.reviews-cta .btn img {
  display: block;
  max-height: 56px;
  width: auto;
}

/* FAQ page */
.faq-section {
  padding: 2rem 0 4rem;
}
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}
.faq-item:hover {
  border-color: rgba(232, 93, 4, 0.25);
}
.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
}
details[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 1rem 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}
.faq-answer a {
  color: var(--accent);
}

/* Contact page */
.contact-page .contact-blocks {
  display: grid;
  gap: 2rem;
}
.contact-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-block h2 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.contact-block p {
  margin-bottom: 0.75rem;
}
.contact-block p:last-child {
  margin-bottom: 0;
}

/* Popups - hidden by default, shown via JS if not in localStorage */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.is-visible {
  display: flex;
  opacity: 1;
}
.popup-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.popup-box h3 {
  margin-bottom: 0.75rem;
}
.popup-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.popup-box a {
  color: var(--accent);
  text-decoration: underline;
}
.popup-box a:hover {
  color: var(--accent-soft);
}
.popup-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.popup-actions button {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.popup-actions .btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
}
.popup-actions .btn-accept:hover {
  background: var(--accent-soft);
}
.popup-actions .btn-decline {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}
.popup-actions .btn-decline:hover {
  background: var(--border);
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
