/* Schoolboy Runaway - Game Review Site */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-muted: #6b6b8a;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--accent);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
}

.hero-text h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-actions .btn img {
  height: 26px;
  width: auto;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-stats .stat {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Section */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-header p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Feature Rows */
.section-features {
  background: var(--bg-primary);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-row--reverse .feature-text {
  text-align: left;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-text h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 420px;
}

/* Video Section */
.section-video {
  background: var(--bg-secondary);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Overview Section */
.section-overview {
  background: var(--bg-primary);
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.overview-card {
  display: flex;
  gap: 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.overview-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-hover);
}

.overview-card__img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.overview-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.overview-card__body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* CTA Section */
.section-cta {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.cta-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 14px;
}

.cta-block p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: #e5e7eb;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: white;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Page Content */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
}

.page-hero .container {
  max-width: 640px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.page-content {
  padding: 60px 0 80px;
}

/* Games Page */
.games-content {
  padding-top: 40px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.game-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-hover);
}

.game-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-secondary);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__badges {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.game-card__body {
  padding: 32px 32px 32px 0;
}

.game-card__title {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.game-card__subtitle {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.game-card__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coming-soon {
  margin-top: 64px;
  padding: 48px;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.coming-soon__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.coming-soon__text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.contact-block {
  padding: 28px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-block:hover {
  box-shadow: var(--shadow);
}

.contact-block h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.contact-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Popups */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.popup-overlay.active .popup {
  transform: scale(1);
}

.popup h3 {
  margin-bottom: 16px;
}

.popup p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.popup-close {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.popup-close:hover {
  background: var(--accent-hover);
}

/* Reviews */
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-rating {
  color: #f59e0b;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    max-height: 280px;
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
    text-align: center;
  }

  .feature-row--reverse .feature-text {
    text-align: center;
  }

  .feature-text p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .overview-cards {
    grid-template-columns: 1fr;
  }

  .overview-card {
    flex-direction: column;
    text-align: center;
  }

  .overview-card__img {
    margin: 0 auto;
  }

  .game-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .game-card__media {
    aspect-ratio: 16/9;
  }

  .game-card__body {
    padding: 24px;
  }

  .game-card__actions {
    flex-direction: column;
  }

  .game-card__actions .btn {
    width: 100%;
  }

  .coming-soon {
    margin-top: 48px;
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-hover);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .feature-row {
    padding: 32px 0;
  }

  .feature-media img {
    height: 180px;
  }
}
