/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
  --primary-color: #4CAF50;
  --primary-dark: #45a049;
  --secondary-color: #8BAB3E;
  --text-color: #333;
  --text-light: #555;
  --bg-white: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --spacing-xs: 0.3rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --bar-height: 80px;
  --bar-height-mobile: 70px;
}

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

body {
  font-family: "Lato", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Landing page specific styles */
body.landing-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
h5 { font-size: clamp(1rem, 2vw, 1.1rem); }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   Fixed Top & Bottom Bars
   ============================================ */

.game-fixed-bar,
.game-fixed-bar-bottom {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: var(--spacing-sm) var(--spacing-md);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.game-fixed-bar {
  height: var(--bar-height);
  border-bottom: 2px solid var(--primary-dark);
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: flex-start;
}

.game-fixed-bar-bottom {
  height: var(--bar-height);
  border-top: 2px solid var(--primary-dark);
  margin-top: auto;
  justify-content: space-between;
  position: relative;
}

#avatarInBar {
  width: 50px;
  height: 50px;
  margin-right: var(--spacing-sm);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

#playerNameInBar {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  margin-right: var(--spacing-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Souvenirs in top bar */
[id^="souvenir"][id$="InBar"] {
  width: 30px;
  object-fit: contain;
  display: none;
  margin-left: var(--spacing-xs);
  flex-shrink: 0;
}

/* Group souvenirs together on the right */
#souvenir0InBar ~ [id^="souvenir"][id$="InBar"] {
  margin-left: var(--spacing-xs);
}

/* Push souvenirs to the right */
#souvenir0InBar {
  margin-left: auto;
}

.locationDisplayBottomBar {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.pointsDisplayAndText {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  white-space: nowrap;
  margin-left: auto;
}

/* ============================================
   Main Content Area
   ============================================ */

/* Main content wrapper - ensures proper spacing */
body > div:not(.game-fixed-bar):not(.game-fixed-bar-bottom) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--bar-height) * 2);
  padding: var(--spacing-md) 0;
  overflow-y: auto;
}

/* ============================================
   Passport Component
   ============================================ */

.passport-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: var(--spacing-lg) auto 0;
  padding: var(--spacing-lg);
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(76, 175, 80, 0.2);
}

.passport-photo {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.passport-photo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.passport-arrow-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.passport-arrow-button-left,
.passport-arrow-button-right {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  background-color: var(--bg-white);
  border: 2px solid var(--text-light);
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--text-color);
  font-weight: bold;
  transition: all 0.2s;
}

.passport-arrow-button-left:hover,
.passport-arrow-button-right:hover {
  background-color: #f0f0f0;
  border-color: var(--primary-color);
}

.passport-info {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.passport-info h1 {
  margin-bottom: var(--spacing-md);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.passport-name-field {
  max-width: 300px;
  margin: 0 auto;
}

.passport-name-field label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.passport-name-field input {
  width: 100%;
  padding: var(--spacing-xs);
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
}

.passport-name-field input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.passport-logo {
  text-align: center;
  margin-top: var(--spacing-md);
}

.passport-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.travelGameStartGameButton {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: var(--spacing-lg) auto 0;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1.1rem;
  font-weight: bold;
  background-color: var(--bg-white);
  color: var(--secondary-color);
  border: 3px solid var(--secondary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.travelGameStartGameButton:hover {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

/* ============================================
   Main Menu & Game Start
   ============================================ */

#gameStartContentDiv {
  background-image: url('https://eusafe.fa.uni-lj.si/wp-content/uploads/2023/07/nature-g551aa179b_1920.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100%;
  padding: var(--spacing-lg);
}

#gameStartUpperTextsRect {
  max-width: 900px;
  width: 100%;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
  text-align: center;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-overlay);
}

.phase-elements-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: var(--spacing-md);
}

.phase-elements-rectangle {
  width: 100%;
  max-width: 400px;
  margin: var(--spacing-md) auto;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-overlay);
  display: flex;
  flex-direction: column;
}

.phase-elements-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: var(--spacing-sm);
}

.phase-elements-text {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  flex: 1;
}

.phase-elements-button {
  display: inline-block;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}

.phase-elements-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.phase-elements-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Phase 1 Chapters
   ============================================ */

.phase1ChaptersDiv {
  background-image: url('https://eusafe.fa.uni-lj.si/wp-content/uploads/2023/07/phase1background.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100%;
  padding: var(--spacing-lg);
  position: relative;
}

.chapters-inside-phase {
  max-width: 700px;
  width: 100%;
  margin: var(--spacing-md) auto;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 50px;
  background: var(--bg-overlay);
  position: relative;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phase1Titles {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: var(--spacing-sm);
}

.phase-menu-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  width: 100%;
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
}

.phase-menu-button-container button,
.phase-menu-button-container a,
.p1StartChapterButtons {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 1rem;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.phase-menu-button-container button:hover,
.phase-menu-button-container a:hover,
.p1StartChapterButtons:hover {
  background-color: var(--primary-dark);
}

.p1ChaptersCompletedText {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-color);
}

.chapters-phase-arrow {
  visibility: hidden;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-top: var(--spacing-xs);
}

/* ============================================
   Phase 1 Chapter Content
   ============================================ */

[id^="p1c"][id$="BackgroundImageDiv"] {
  background-size: cover;
  background-position: center;
  min-height: 100%;
  padding: var(--spacing-lg);
}

.phase1-5images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto var(--spacing-lg);
}

.phase1-5images-imagediv {
  text-align: center;
}

.phase1-5images-imagediv img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border: 4px solid #ddd;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: var(--spacing-xs);
}

.phase1-5images-imagediv img:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.phase1-5images-imagediv h5 {
  font-size: 0.9rem;
  margin: 0;
}

.phase1-content-box {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-overlay);
  min-height: 300px;
}

.phase1-content-box h5,
.phase1-content-box p {
  margin-left: 0;
  margin-right: 0;
}

/* ============================================
   Phase 2 & 3 Image Grids
   ============================================ */

[id^="p"][id$="BackgroundImageContainer"] {
  background-size: cover;
  background-position: center;
  min-height: 100%;
  padding: var(--spacing-lg);
}

.phase2-grid-container {
  max-width: 1400px;
  margin: 0 auto;
}

.phase2-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.phase2-image-grid img {
  width: 100%;
  height: auto;
  border: 4px solid #ddd;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.phase2-image-grid img:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Souvenirs in Overworld
   ============================================ */

[id^="souvenir"][id$=""]:not([id$="InBar"]) {
  width: 60px;
  height: auto;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  transition: transform 0.2s;
}

[id^="souvenir"][id$=""]:not([id$="InBar"]):hover {
  transform: scale(1.1);
}

#souvenir0 {
  bottom: 10%;
  right: 5%;
  animation: bounce 0.7s infinite alternate;
  width: 50px;
}

#souvenir1 {
  bottom: 10%;
  right: 7%;
  animation: bounce 0.6s infinite alternate;
  width: 50px;
}

#souvenir2 {
  width: 50px;
  bottom: 12%;
  left: 7%;
}

#souvenir3 {
  width: 36px;
  bottom: 17%;
  right: 11%;
  animation: bounce 0.6s infinite alternate;
}

#souvenir4 {
  width: 70px;
  bottom: 38%;
  right: 13%;
}

#souvenir5 {
  width: 50px;
  bottom: 41%;
  left: 48%;
}

#souvenir6 {
  width: 60px;
  bottom: 25%;
  right: 20%;
}

#souvenir7 {
  width: 60px;
  bottom: 150px;
  right: 90px;
  animation: bounce 0.8s infinite alternate;
  display: none;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* ============================================
   Popup Windows
   ============================================ */

[id$="-popup-container"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

[id$="-popup-content"] {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

[id$="-popup-close-button"] {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 30px;
  height: 30px;
  font-weight: bold;
  font-size: 1.2rem;
  background-color: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

[id$="-popup-close-button"]:hover {
  background-color: #f5776c;
  color: var(--bg-white);
}

/* ============================================
   Phase 3 Quiz
   ============================================ */

.p3-quiz-buttons {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: var(--spacing-xs) auto;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--bg-white);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.p3-quiz-buttons:hover {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

/* Override quiz button styles for close button */
#phase3-popup-close-button {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

#p3-quiz-correct-answers,
#p3-quiz-wrong-answers {
  display: none;
  margin-top: var(--spacing-md);
  text-align: center;
}

#p3-final-button {
  display: none;
  margin: var(--spacing-lg) auto;
  font-size: 1.2rem;
}

/* ============================================
   Results Page
   ============================================ */

#backgroundImageDivResultsPage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  background-image: url('https://eusafe.fa.uni-lj.si/wp-content/uploads/2023/07/maldives-g15ea9d3db_1920.jpg');
  background-size: cover;
  background-position: center;
  padding: var(--spacing-lg);
}

#resultsPageCenterEverything {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-overlay);
}

/* ============================================
   Bottom Bar Button
   ============================================ */

.bottomBarBackButton {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: bold;
  background-color: var(--bg-white);
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  order: -1;
  text-decoration: none;
  text-align: center;
}

.bottomBarBackButton:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ============================================
   Button Links
   ============================================ */

.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lato", sans-serif;
  border-radius: var(--border-radius);
  color: var(--text-color);
  text-decoration: none;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1rem;
  border: 2px solid transparent;
  background-color: var(--bg-white);
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
  box-shadow: rgba(139, 171, 62, 0.2) 0px 2px 8px 0px;
  font-weight: 500;
  margin: var(--spacing-sm) 0;
  min-height: 80px;
}

.button-link:hover {
  border: 2px solid var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */

@media (max-width: 768px) {
  :root {
    --bar-height: var(--bar-height-mobile);
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }


  .game-fixed-bar,
  .game-fixed-bar-bottom {
    height: var(--bar-height-mobile);
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  #avatarInBar {
    width: 40px;
    height: 40px;
  }

  #playerNameInBar {
    font-size: 0.9rem;
    margin-right: var(--spacing-xs);
  }

  [id^="souvenir"][id$="InBar"] {
    width: 30px;
    height: 30px;
  }

  .passport-container {
    margin: var(--spacing-md) var(--spacing-sm);
    padding: var(--spacing-md);
  }

  .passport-photo img {
    width: 120px;
    height: 120px;
  }

  .passport-logo img {
    width: 120px;
  }

  .phase-elements-rectangle {
    margin: var(--spacing-sm) auto;
    padding: var(--spacing-md);
  }

  .chapters-inside-phase {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
  }

  .phase1-5images-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-sm);
  }

  .phase2-image-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }

  .phase-menu-button-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .locationDisplayBottomBar {
    font-size: 0.85rem;
    max-width: 200px;
  }

  .pointsDisplayAndText {
    font-size: 0.8rem;
    margin-left: var(--spacing-xs);
  }

  .bottomBarBackButton {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }

  [id^="souvenir"][id$=""]:not([id$="InBar"]) {
    width: 40px;
  }

  #souvenir4 {
    width: 50px;
  }

  #souvenir7 {
    width: 40px;
    bottom: 100px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  #gameStartContentDiv,
  .phase1ChaptersDiv,
  [id^="p1c"][id$="BackgroundImageDiv"],
  [id^="p"][id$="BackgroundImageContainer"] {
    padding: var(--spacing-sm);
  }

  #gameStartUpperTextsRect {
    padding: var(--spacing-md);
  }

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

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

  .phase1-content-box {
    padding: var(--spacing-md);
    min-height: 200px;
  }

  [id$="-popup-content"] {
    padding: var(--spacing-md);
    max-height: 85vh;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }

/* ============================================
   Landing Page Styles
   ============================================ */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--bg-white);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://eusafe.fa.uni-lj.si/wp-content/uploads/2023/07/nature-g551aa179b_1920.jpg') center/cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--bg-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--bg-white);
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

/* Main Content */
.landing-main-content {
  flex: 1;
  width: 100%;
}

.content-section {
  padding: var(--spacing-xl) var(--spacing-md);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

.section-description {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

/* Introduction Section */
.intro-section {
  background-color: var(--bg-white);
}

.lead-text {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  color: var(--text-color);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.feature-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, #f8f9fa 100%);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-card h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-light);
  margin: 0;
}

.gameplay-highlight {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 171, 62, 0.1) 100%);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--primary-color);
  text-align: center;
  max-width: 800px;
  margin: var(--spacing-xl) auto 0;
}

.gameplay-highlight p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-color);
  margin: 0;
  font-weight: 500;
}

/* Passport Section */
.passport-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.device-notice {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}

/* Resources Section */
.resources-section {
  background-color: var(--bg-white);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.resource-card {
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.resource-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.resource-card h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.resource-card p {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
  color: var(--text-color);
}

.resource-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.resource-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.resource-links a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
  .hero-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .content-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .features-grid,
  .resources-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .gameplay-highlight {
    padding: var(--spacing-md);
  }
}