@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Design Tokens - Colors */
  --primary-blue: #122A4A;
  --primary-blue-hover: #0E1F3A;
  --primary-red: #C6364A;
  --primary-red-hover: #A52E3E;
  --white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-card-white: #FFFFFF;
  --text-dark: #1A202C;
  --text-body: #4A5568;
  --text-light: #718096;
  --border-light: #E2E8F0;
  --star-rating: #F6AD55;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-circle: 50%;
  --radius-pill: 999px;

  /* Spacing Scale */
  --space-base: 16px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Shadows */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Layout */
  --container-max-width: 1200px;
  --section-padding-y: 60px;
  --grid-gap: 24px;
}

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

body {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

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

h1 {
  font-size: 42px;
  line-height: 1.1;
  color: var(--white);
}

h2 {
  font-size: 32px;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.text-large {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
}

.text-default {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.text-small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

.text-caption {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* General Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.main-content {
  flex: 1;
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-dark {
  background-color: var(--primary-blue);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* Grid & Flex layouts */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

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

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

/* Navbar Component */
.navbar {
  background-color: var(--white);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  border-bottom: 1px solid var(--border-light);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-blue);
}

.nav-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
  text-decoration: underline;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hamburger toggle for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dark);
}

/* Mobile navigation container */
.mobile-nav {
  display: none;
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-medium);
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-links a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  padding: var(--space-xs) 0;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary-red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0px);
}

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

.btn-secondary:hover {
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero Section */
.hero {
  background-color: var(--primary-blue);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 80px 20px 96px 20px;
  margin-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay-graphic {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background: radial-gradient(circle, var(--primary-red) 10%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-sm);
}

.hero-subheadline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
  transform: translateY(-2px);
}


/* Stats Component */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
}

.stat-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-light);
  flex: 1;
  min-width: 200px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.stat-card-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--space-xs);
}

.stat-card-label {
  font-size: 14px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Cards & Places */
.place-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
  height: 100%;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.place-card.featured {
  border: 2px solid var(--primary-red);
}

.place-card-image {
  height: 400px;
  width: 100%;
  object-fit: cover;
  position: relative;
}

.place-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.place-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-grow: 1;
}

.place-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--star-rating);
  font-weight: 600;
}

.place-card-rating span {
  color: var(--text-dark);
}

.place-card-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-sm);
}

/* Feature List Item Component */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  align-items: flex-start;
}

.feature-icon-wrapper {
  background-color: var(--bg-light);
  color: var(--primary-red);
  border-radius: var(--radius-circle);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* FAQ Accordion Component */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.faq-accordion {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.faq-header {
  display: flex;
  padding: var(--space-md) var(--space-lg);
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: var(--white);
  transition: background-color 0.2s ease;
}

.faq-header:hover {
  background-color: var(--bg-light);
}

.faq-question {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
}

.faq-icon {
  color: var(--text-light);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
}

.faq-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.faq-answer {
  color: var(--text-body);
  padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
  display: none;
  font-size: 14px;
  line-height: 1.6;
}

.faq-accordion.active .faq-answer {
  display: block;
}

.faq-accordion.active .faq-header {
  background-color: var(--bg-light);
}

.faq-accordion.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-red);
}

/* Forms & Inputs */
.contact-form-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-medium);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input, .form-textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(198, 54, 74, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Modals for Game Reviews */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 42, 74, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-large);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-lg);
  background-color: var(--primary-blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--white);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.modal-close-btn svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: var(--space-xl);
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.modal-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
}

.modal-rating-badge svg {
  color: var(--star-rating);
  width: 16px;
  height: 16px;
}

.modal-genre-tag {
  background-color: rgba(198, 54, 74, 0.1);
  color: var(--primary-red);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

/* Call to Action Banner */
.cta-banner {
  background-color: var(--primary-red);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-medium);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto var(--space-lg) auto;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.cta-banner .btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-red);
}

/* Footer Section */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 60px 0 30px 0;
  border-top: 4px solid var(--primary-red);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  padding-left: 4px;
}

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 18px;
  font-weight: 800;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-copyright-links {
  display: flex;
  gap: var(--space-md);
}

.footer-copyright-links a {
  color: rgba(255, 255, 255, 0.5);
}

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

/* Page Specific Hero / Header styling */
.page-header {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 60px 0;
  margin-bottom: var(--space-xl);
  border-bottom: 3px solid var(--primary-red);
}

.page-header h1 {
  margin-bottom: var(--space-xs);
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 700px;
}

/* Custom styling for specific templates */
.two-col-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
}

.rich-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.rich-content p {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.rich-content ul, .rich-content ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.rich-content li {
  margin-bottom: var(--space-xs);
}

/* Review details customization */
.game-review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.review-card-action {
  margin-top: auto;
  padding-top: var(--space-md);
}

/* Session Options (Play page) */
.session-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.session-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.session-header {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: var(--space-lg);
  text-align: center;
}

.session-duration-tag {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.session-header h3 {
  color: var(--white);
}

.session-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-grow: 1;
}

.session-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 14px;
}

.session-feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.session-feature-list svg {
  color: var(--primary-red);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.session-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* Responsive Rules & Breakpoints */
@media (max-width: 992px) {
  h1 {
    font-size: 34px;
  }
  
  h2 {
    font-size: 28px;
  }

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

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

  .two-col-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .nav-links, .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-copyright {
    flex-direction: column;
    text-align: center;
  }

  .game-review-grid {
    grid-template-columns: 1fr;
  }

  .session-grid {
    grid-template-columns: 1fr;
  }
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

