/* Clash Royale Review - Custom design, Indian audience, English */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --bg-elevated: #243044;
  --accent-gold: #d4a84b;
  --accent-gold-hover: #e8bc5e;
  --accent-red: #c94b4b;
  --text-primary: #f0f2f5;
  --text-secondary: #a8b5c4;
  --text-muted: #6b7c8f;
  --border: rgba(212, 168, 75, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-gold-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-wrap img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.logo-wrap span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-desktop a {
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-desktop a:hover {
  color: var(--accent-gold);
  background: rgba(212, 168, 75, 0.08);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-gold), #b8923a);
  color: #0f1419;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 75, 0.4);
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}
.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.burger-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 20, 25, 0.98);
  z-index: 99;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}
.burger-menu.open {
  display: block;
}
.burger-menu .nav-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.burger-menu .btn-cta {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-arena.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.hero .btn-cta {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-block img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card-block .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-block h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.card-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}
.card-block .card-body .btn-cta {
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* News strip */
.news-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.news-strip .section-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.news-item {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.news-item:hover {
  transform: translateY(-2px);
}
.news-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.news-item .news-meta {
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.news-item h3 {
  font-size: 1.05rem;
  padding: 0 1rem 1rem;
  font-weight: 600;
}
.news-item a {
  color: inherit;
}
.news-item a:hover {
  color: var(--accent-gold);
}

/* Video block */
.video-block {
  text-align: center;
  padding: 3rem 1.5rem;
}
.video-block .section-title {
  margin-bottom: 1.5rem;
}
.video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.feature-row.reverse {
  direction: rtl;
}
.feature-row.reverse > * {
  direction: ltr;
}
.feature-row img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.feature-row .feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-row .feature-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}
.feature-row .feature-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.feature-row .feature-text .btn-cta {
  align-self: flex-start;
}

/* About / Reviews hero images */
.about-hero-img,
.review-hero-img {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-hero-img img,
.review-hero-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  background-size: 120px;
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-grid ul {
  list-style: none;
}
.footer-grid li {
  margin-bottom: 0.5rem;
}
.footer-grid a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-grid a:hover {
  color: var(--accent-gold);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom .store-badge-wrap {
  display: inline-flex;
  align-items: center;
}
.footer-bottom .logo-wrap {
  opacity: 0.9;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Google Play store badge */
.store-badge-wrap {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.store-badge-wrap:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.store-badge {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: 200px;
}

/* Page header */
.page-hero {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Content page (reviews, privacy, terms, about) */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.content-page h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-page p, .content-page li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.content-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Review card */
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.review-card .review-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.review-card .review-meta .stars {
  color: var(--accent-gold);
  font-size: 0.9rem;
}
.review-card .review-meta .date {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.review-card .author {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.review-card .text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Popups - hidden by default, no flash */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.popup-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s;
}
.popup-overlay.visible .popup-box {
  transform: scale(1);
}
.popup-box h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.popup-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.popup-box .btn-cta {
  width: 100%;
  justify-content: center;
}

/* Utility */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.view-all {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .site-header .btn-cta {
    display: none !important;
  }
  .burger-btn {
    display: flex;
  }
  .hero {
    min-height: 70vh;
    padding: 2rem 1rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 1rem;
  }
  .logo-wrap span {
    font-size: 1.1rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .news-strip .section-inner {
    grid-template-columns: 1fr;
  }
}
