/* MGY Titanic Quiz - Core Stylesheet */

/* ===== BASE STYLES ===== */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
  background: linear-gradient(
    to bottom right,
    var(--titanic-50),
    var(--titanic-100)
  );
  min-height: 100vh;
  color: var(--gray-800);
  padding-top: 120px; /* Account for fixed navigation */
}

/* Adjust padding when navigation is scrolled */
body.nav-scrolled {
  padding-top: 90px;
}

/* ===== CUSTOM COLOR PALETTE ===== */
:root {
  /* Primary Titanic Colors - matching mobile app */
  --titanic-primary: #c18f62; /* Gold/bronze color for titles and accents */
  --titanic-secondary: #233f55; /* Dark blue for backgrounds and borders */
  --titanic-light: #e7e9de; /* Light beige for dropdowns and backgrounds */
  --titanic-text: #2c3134; /* Dark gray for text */
  --titanic-text-light: #ffffff; /* White text */

  /* Button Colors */
  --btn-success: #5cb85c; /* Green for start/continue buttons */
  --btn-warning: #ab6031; /* Brown for skip/pause buttons */
  --btn-danger: #dc3545; /* Red for end game button */
  --btn-info: #ffc107; /* Yellow for pause indicator */

  /* Answer Colors */
  --answer-correct: #4caf50; /* Green for correct answers */
  --answer-incorrect: #f44336; /* Red for incorrect answers */
  --answer-disabled: #6c757d; /* Gray for disabled state */

  /* Legacy colors for compatibility */
  --titanic-50: #eff6ff;
  --titanic-100: #dbeafe;
  --titanic-200: #bfdbfe;
  --titanic-300: #93c5fd;
  --titanic-400: #60a5fa;
  --titanic-500: #3b82f6;
  --titanic-600: #1e40af;
  --titanic-700: #1d4ed8;
  --titanic-800: #1e3a8a;
  --titanic-900: #1e2a5e;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000000;
  text-align: center;
  margin-bottom: 1rem;
}

.access-summary-card {
  background-color: var(--titanic-secondary);
  color: #000000;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

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

.footer-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

/* ===== UTILITY CLASSES ===== */
/* Titanic Color Classes */
.titanic-primary {
  color: var(--titanic-primary);
}
.titanic-secondary {
  color: var(--titanic-secondary);
}
.titanic-text {
  color: var(--titanic-text);
}
.titanic-text-light {
  color: var(--titanic-text-light);
}

.bg-titanic-primary {
  background-color: var(--titanic-primary);
}
.bg-titanic-secondary {
  background-color: var(--titanic-secondary);
}
.bg-titanic-light {
  background-color: var(--titanic-light);
}

.text-titanic-primary {
  color: var(--titanic-primary);
}
.text-titanic-secondary {
  color: var(--titanic-secondary);
}
.text-titanic-text {
  color: var(--titanic-text);
}
.text-titanic-text-light {
  color: var(--titanic-text-light);
}

/* Legacy color classes for compatibility */
.titanic-600 {
  color: var(--titanic-600);
}
.titanic-700 {
  color: var(--titanic-700);
}
.titanic-300 {
  color: var(--titanic-300);
}
.titanic-50 {
  color: var(--titanic-50);
}
.titanic-100 {
  color: var(--titanic-100);
}

.bg-titanic-600 {
  background-color: #233f55;
}
.bg-titanic-700 {
  background-color: var(--titanic-700);
}
.bg-titanic-50 {
  background-color: var(--titanic-50);
}

.text-titanic-600 {
  color: var(--titanic-600);
}
.text-titanic-700 {
  color: var(--titanic-700);
}
.text-titanic-300 {
  color: var(--titanic-300);
}
.text-titanic-100 {
  color: var(--titanic-100);
}

.hover\:text-titanic-300:hover {
  color: var(--titanic-300);
}
.hover\:bg-titanic-50:hover {
  background-color: var(--titanic-50);
}
.hover\:text-titanic-700:hover {
  color: var(--titanic-700);
}

/* Game-specific utility classes */
.correct-increase {
  color: var(--answer-correct);
  font-weight: bold;
}

.wrong-decrease {
  color: var(--answer-incorrect);
  font-weight: bold;
}

.score-points {
  color: var(--titanic-light);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
  background-color: var(--btn-success);
  color: var(--titanic-text-light);
  font-weight: 600;
  padding: 0.75rem 1.875rem;
  border-radius: 0.625rem;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  text-align: center;
  min-width: 200px;
}

.btn-primary:hover {
  background-color: #4a9d4a;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--titanic-light);
  color: var(--titanic-text);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--titanic-primary);
  cursor: pointer;
  font-size: 0.875rem;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--titanic-primary);
  color: var(--titanic-text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Game-specific button styles */
.btn-warning {
  background-color: var(--btn-warning);
  color: var(--titanic-text-light);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-warning:hover {
  background-color: #9a4f28;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-danger {
  background-color: var(--btn-danger);
  color: var(--titanic-text-light);
  font-weight: 600;
  padding: 0.75rem 1.875rem;
  border-radius: 0.625rem;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  min-width: 150px;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== CARD STYLES ===== */
.card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 2rem;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

/* ===== NAVIGATION STYLES ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: black;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: 120px;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.sticky-nav.scrolled {
  height: 90px; /* 90px for scrolled state */
}

.sticky-nav .nav-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  position: relative;
}

.sticky-nav .nav-content > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.sticky-nav .nav-content img,
.sticky-nav .logo-img {
  height: 100px; /* 100px - larger for initial nav */
  width: auto;
  transition: all 0.3s ease-in-out;
}

.sticky-nav.scrolled .nav-content img,
.sticky-nav.scrolled .logo-img {
  height: 75px; /* 75px - smaller when scrolled */
}

/* Ensure navigation is visible */
.sticky-nav nav {
  display: flex !important;
  align-items: center;
  gap: 2rem;
}

.sticky-nav nav a {
  color: white !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.sticky-nav nav a:hover {
  color: var(--titanic-300) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .sticky-nav .nav-content {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .sticky-nav .nav-content > div {
    gap: 1rem;
  }

  .sticky-nav nav {
    display: none !important;
  }

  .sticky-nav button {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .sticky-nav .nav-content {
    padding: 0 0.5rem;
  }

  .sticky-nav .nav-content img,
  .sticky-nav .logo-img {
    height: 60px;
  }

  .sticky-nav.scrolled .nav-content img,
  .sticky-nav.scrolled .logo-img {
    height: 50px;
  }
}

/* ===== HERO GRADIENTS ===== */
.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--titanic-600) 0%,
    var(--titanic-700) 50%,
    var(--titanic-500) 100%
  );
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--titanic-600) 0%,
    var(--titanic-500) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FORM STYLES ===== */
.input-field {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.3s;
}

.input-field:focus {
  border-color: var(--titanic-600);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ===== TAB STYLES ===== */
.tab-button {
  padding: 0.75rem 2rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-button.active {
  border-bottom-color: var(--titanic-600);
  color: var(--titanic-600);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== GAME-SPECIFIC STYLES ===== */
/* Game Container */
.game-container {
  background-color: var(--titanic-text-light);
  padding: 1.25rem;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
  margin-top: 0.625rem;
  border: 2px solid var(--titanic-secondary);
}

/* Game Filters */
.game-filters {
  background-color: var(--titanic-text-light);
  padding: 0.9375rem;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
  margin-top: 0.625rem;
  border: 2px solid var(--titanic-secondary);
}

.filter-group {
  margin-bottom: 0.9375rem;
  position: relative;
  z-index: 999;
}

.filter-label {
  color: #000000;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Filter Dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--titanic-text);
  margin-bottom: 0.5rem;
}

.dropdown-container {
  position: relative;
  z-index: 1000;
}

.dropdown-button {
  background-color: var(--titanic-light);
  border-radius: 0.5rem;
  border: 2px solid var(--titanic-primary);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.dropdown-button:hover {
  background-color: var(--titanic-primary);
  color: var(--titanic-text-light);
}

.dropdown-button-text {
  color: var(--titanic-text);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Dropdown Overlay */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
}

.dropdown-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  pointer-events: all;
}

.dropdown-menu {
  position: absolute;
  background-color: var(--titanic-light);
  border-radius: 0.5rem;
  border: 2px solid var(--titanic-primary);
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  pointer-events: all;
  z-index: 10000;
}

.difficulty-dropdown-menu {
  top: 120px;
  left: 20px;
  right: 20px;
}

.topic-dropdown-menu {
  top: 200px;
  left: 20px;
  right: 20px;
}

.dropdown-option {
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(35, 63, 85, 0.1);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background-color: var(--titanic-primary);
  color: var(--titanic-text-light);
}

.dropdown-option.active {
  background-color: var(--titanic-primary);
  color: var(--titanic-text-light);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filter-dropdowns {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-group {
    min-width: unset;
  }

  .difficulty-dropdown-menu,
  .topic-dropdown-menu {
    left: 10px;
    right: 10px;
  }
}

/* Stats Card */
.stats-card {
  padding: 1.25rem;
  background-color: var(--titanic-secondary);
  border-radius: 0.625rem;
}

.stats-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--titanic-text-light);
  text-align: center;
  margin-bottom: 0.9375rem;
}

.stats-row {
  display: flex;
  justify-content: space-around;
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--titanic-text-light);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--titanic-text-light);
  text-align: center;
  font-weight: 700;
  margin-top: 0.3125rem;
  line-height: 0.875rem;
}

/* Score Area */
.score-area {
  margin-bottom: 1.25rem;
  background-color: var(--titanic-secondary);
  padding: 1.25rem;
  border-radius: 0.625rem;
  display: flex;
  justify-content: center;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.score,
.time,
.points-available {
  flex: 1;
  text-align: center;
  padding: 0 0.3125rem;
  height: 6.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.label-container {
  height: 3.125rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.value-container {
  height: 1.875rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-label {
  color: var(--titanic-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  text-align: center;
}

.score-value {
  color: var(--titanic-light);
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

/* Answer Options */
.answer-option {
  background-color: var(--titanic-secondary);
  border: none;
  border-radius: 0.625rem;
  padding: 1.125rem;
  margin: 0.9375rem 0;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  width: 100%;
  min-height: 3.125rem;
  color: var(--titanic-text-light);
  font-size: 1rem;
  font-weight: 600;
}

.answer-option:hover {
  background-color: var(--titanic-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.answer-option.selected {
  background-color: var(--titanic-primary);
  color: var(--titanic-text-light);
}

.answer-option.correct {
  background-color: var(--answer-correct);
  color: var(--titanic-text-light);
}

.answer-option.incorrect {
  background-color: var(--answer-incorrect);
  color: var(--titanic-text-light);
}

.answer-option.disabled {
  background-color: var(--answer-disabled);
  opacity: 0.6;
  cursor: not-allowed;
}

/* Question Area */
.qa-area {
  background-color: var(--titanic-text-light);
  padding: 1.25rem;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
  margin-top: -0.9375rem;
  border: 2px solid var(--titanic-secondary);
  width: 832px;
  margin-left: auto;
  margin-right: auto;
}

.question-area {
  margin-bottom: 1.5625rem;
}

.ask-question {
  color: #000000;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5rem;
}

.picture-question-area {
  width: 100%;
  height: 12.5rem;
  border-radius: 0.625rem;
  margin: 35px 0px;
  object-fit: contain;
}

.answer-area {
  display: flex;
  flex-direction: column;
}

/* Game Controls */
.points-area {
  margin-bottom: 0.3125rem;
}

.start-end-game-button {
  text-align: center;
  padding: 0.3125rem 0;
}

.next-skip-question {
  text-align: center;
  margin-bottom: 1.875rem;
}

.skip-pause-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1.25rem;
  margin-bottom: 0.9375rem;
}

.end-game-row {
  text-align: center;
  width: 100%;
}

/* Pause Indicator */
.pause-indicator {
  background-color: var(--btn-info);
  padding: 0.9375rem;
  border-radius: 0.625rem;
  text-align: center;
  margin-bottom: 0.9375rem;
  margin-top: -0.9375rem;
}

.pause-indicator-text {
  color: var(--titanic-text);
  font-size: 1.125rem;
  font-weight: bold;
  text-align: center;
}

.hidden {
  display: none;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: #e2e8f0;
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--titanic-600);
  transition: width 0.3s ease;
}

/* ===== HIGH SCORES STYLES ===== */
.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #f59e0b);
}

.difficulty-easy {
  background-color: #10b981;
  color: white;
}

.difficulty-medium {
  background-color: #f59e0b;
  color: white;
}

.difficulty-hard {
  background-color: #ef4444;
  color: white;
}

/* ===== PROFILE STYLES ===== */
.stat-card {
  background: linear-gradient(135deg, var(--titanic-600), var(--titanic-500));
  color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-warning,
  .btn-danger {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  .answer-option {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Game-specific responsive adjustments */
  .game-filters {
    padding: 1rem;
  }

  .stats-card {
    padding: 1rem;
  }

  .score-area {
    padding: 1rem;
  }

  .qa-area {
    padding: 1rem;
  }

  .score-row {
    flex-direction: column;
    gap: 1rem;
  }

  .score,
  .time,
  .points-available {
    height: auto;
    padding: 0.5rem;
  }

  .skip-pause-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-warning,
  .btn-danger {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .game-container,
  .game-filters,
  .stats-card,
  .score-area,
  .qa-area {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .ask-question {
    font-size: 1rem;
    line-height: 1.375rem;
  }

  .answer-option {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid var(--titanic-600);
  outline-offset: 2px;
}

.answer-option:focus {
  outline: 2px solid var(--titanic-600);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .sticky-nav {
    position: static;
  }

  .btn-primary,
  .btn-secondary {
    box-shadow: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ========================================
   HEADING STYLES (H1-H6)
   ======================================== */

/* Base heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* H1 - Main page titles */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000;
  letter-spacing: -0.025em;
}

/* H2 - Section headers */
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

/* H3 - Subsection headers */
h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #374151;
}

/* H4 - Component headers */
h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #4b5563;
}

/* H5 - Small headers */
h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

/* H6 - Smallest headers */
h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Heading variants for different contexts */

/* Game-specific headings */
.game-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

/* Responsive heading sizes */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  .game-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .game-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.375rem;
  }
}

/* Special heading styles for Titanic theme */
.titanic-heading {
  color: #1e40af;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.danger-heading {
  color: #dc2626;
  font-weight: 700;
}

.success-heading {
  color: #059669;
  font-weight: 700;
}

/* Heading with underline accent */
.heading-accent {
  position: relative;
  padding-bottom: 0.5rem;
}

.heading-accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  border-radius: 2px;
}

/* Centered headings */
.heading-center {
  text-align: center;
}

/* Heading with icon */
.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.heading-with-icon::before {
  content: "⚓";
  font-size: 1.2em;
}
