@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-darker: #0d0a07;
  --bg-dark: #140f0c;
  --bg-card: #1c1511;
  --bg-card-hover: #261e19;
  
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-dark: #aa8018;
  
  --color-turquoise: #33b3a6;
  --color-turquoise-light: #66ebd9;
  --color-turquoise-dark: #1b8075;
  
  --color-crimson: #a62a24;
  
  --text-main: #f2eae1;
  --text-muted: #bfae9e;
  --text-dark: #0d0a07;
  
  --border-gold: rgba(212, 175, 55, 0.18);
  --border-gold-glow: rgba(212, 175, 55, 0.4);
  --border-turquoise: rgba(51, 179, 166, 0.2);
  --border-turquoise-glow: rgba(51, 179, 166, 0.5);
  
  --font-title: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --shadow-gold-glow: 0 0 15px rgba(212, 175, 55, 0.2);
  --shadow-turquoise-glow: 0 0 15px rgba(51, 179, 166, 0.25);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

html, body {
  font-family: var(--font-body);
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Background Ornament */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(51, 179, 166, 0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

/* Header & Navigation */
header {
  background-color: rgba(20, 15, 12, 0.95);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-gold-glow);
  transition: var(--transition-smooth);
}

.logo-area:hover .logo-img {
  transform: rotate(15deg) scale(1.05);
  box-shadow: 0 0 20px var(--color-gold);
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-gold-light) 30%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--color-turquoise);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.nav-item:hover {
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.1);
}

.nav-item.active {
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold-glow);
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-gold-light);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Sections & Tabs */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
  position: relative;
  z-index: 1;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Tab Hero Banner */
.hero-banner {
  background: linear-gradient(rgba(20, 15, 12, 0.75), rgba(13, 10, 7, 0.98)), url('media/obabeyi_banner.png');
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--border-gold);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: var(--color-gold);
}

.hero-banner h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Landing Page Specifics */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-details h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-details p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.btn-primary, .btn-secondary {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--text-dark);
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: rgba(51, 179, 166, 0.05);
  color: var(--color-turquoise-light);
  border: 1px solid var(--color-turquoise);
  box-shadow: var(--shadow-turquoise-glow);
}

.btn-secondary:hover {
  background: rgba(51, 179, 166, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(51, 179, 166, 0.4);
}

.hero-media {
  position: relative;
}

.banner-frame {
  border: 4px solid var(--color-gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), var(--shadow-gold-glow);
  aspect-ratio: 16/10;
  background-color: var(--bg-card);
}

.banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.banner-frame:hover img {
  transform: scale(1.03);
}

/* Features Grid */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  content: '✦';
  display: block;
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-top: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold-glow);
  background-color: var(--bg-card-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--color-gold-light);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Quick Statistics Grid */
.stat-banner {
  background: linear-gradient(rgba(20, 15, 12, 0.95), rgba(20, 15, 12, 0.95)), url('media/obabeyi_banner.png');
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h4 {
  font-size: 3rem;
  color: var(--color-gold);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1;
}

.stat-item p {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* Interactive Tools Layout */
.tool-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.tool-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.tool-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Search Bar Styling */
.search-container {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--color-turquoise);
  box-shadow: var(--shadow-turquoise-glow);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Item List Sidebar */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-list-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.item-list-btn:hover {
  background: rgba(212, 175, 55, 0.05);
  color: var(--color-gold-light);
}

.item-list-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.02));
  border-color: var(--border-gold-glow);
  color: var(--color-gold-light);
  font-weight: 600;
  box-shadow: var(--shadow-gold-glow);
}

.item-badge {
  margin-left: auto;
  font-size: 0.75rem;
  background-color: rgba(51, 179, 166, 0.15);
  color: var(--color-turquoise-light);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-turquoise);
}

/* Detail Panel Styling */
.detail-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1.5rem;
}

.detail-title-area {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.detail-icon {
  font-size: 3.5rem;
  background-color: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold-glow);
}

.detail-title-info h2 {
  font-size: 2rem;
  color: var(--color-gold-light);
}

.detail-title-info p {
  color: var(--color-turquoise);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 0.2rem;
}

.detail-meta-badge {
  font-family: var(--font-title);
  background: linear-gradient(135deg, var(--color-gold-dark), rgba(20, 15, 12, 0.9));
  border: 1px solid var(--color-gold);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--color-gold-light);
}

.detail-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  background: rgba(20, 15, 12, 0.3);
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 4px 4px 0;
}

/* Stat Grid Inside Panel */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.stat-card-value.highlight {
  color: var(--color-turquoise-light);
}

/* Resource Box Styles */
.resource-display {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.res-cost-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.res-cost-item.et { border-color: rgba(166, 42, 36, 0.3); color: #ff6b66; }
.res-cost-item.odun { border-color: rgba(170, 128, 24, 0.3); color: #ffce54; }
.res-cost-item.demir { border-color: rgba(192, 192, 192, 0.3); color: #a5b1c2; }
.res-cost-item.akce { border-color: rgba(212, 175, 55, 0.3); color: #ffe476; }
.res-cost-item.gokboru { border-color: rgba(51, 179, 166, 0.3); color: var(--color-turquoise-light); }

/* Interactive Calculator Styles */
.calculator-box {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2.5rem;
  position: relative;
}

.calculator-box h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--color-gold);
  outline: none;
  box-shadow: var(--shadow-gold-glow);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.checkbox-row label {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-main);
}

.calc-result-area {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold-glow);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.calc-result-header {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.calc-result-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.result-card {
  flex: 1;
  min-width: 150px;
  background-color: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.02);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.result-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.result-card-value {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Combat Simulator Troop Inputs */
.simulator-troop-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.troop-input-card {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.troop-input-info {
  display: flex;
  flex-direction: column;
}

.troop-input-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--color-gold-light);
}

.troop-input-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.troop-input-field {
  width: 70px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 0.4rem;
  color: var(--text-main);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
}

.troop-input-field:focus {
  border-color: var(--color-turquoise);
  outline: none;
}

/* Dilemmas & Questions List Views */
.dilemma-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.dilemma-card:hover {
  border-color: var(--color-turquoise);
  box-shadow: var(--shadow-turquoise-glow);
}

.dilemma-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 0.8rem;
}

.dilemma-title {
  font-size: 1.35rem;
  color: var(--color-gold-light);
}

.dilemma-badge {
  font-size: 0.75rem;
  background-color: rgba(166, 42, 36, 0.15);
  color: #ff6b66;
  border: 1px solid rgba(166, 42, 36, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.dilemma-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.dilemma-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dilemma-option {
  background-color: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--color-gold);
}

.dilemma-option-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.dilemma-option-cost {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dilemma-option-cost span {
  font-weight: 500;
}

.dilemma-option-cost.cost {
  color: #ff6b66;
}

.dilemma-option-cost.benefit {
  color: var(--color-turquoise-light);
}

/* History Quiz / Questions View */
.quiz-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.quiz-q-num {
  font-size: 0.85rem;
  color: var(--color-turquoise);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quiz-q-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quiz-option {
  background-color: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
}

.quiz-option.correct {
  border-color: var(--color-turquoise);
  background-color: rgba(51, 179, 166, 0.05);
  color: var(--color-turquoise-light);
  font-weight: 600;
}

.quiz-reward-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Caravan and Conquest Card Layouts */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.route-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.route-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 15, 12, 0.5), rgba(0,0,0,0));
}

.route-header h3 {
  font-size: 1.15rem;
}

.route-risk-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.route-risk-badge.low { background-color: rgba(51, 179, 166, 0.15); color: var(--color-turquoise-light); border: 1px solid var(--border-turquoise); }
.route-risk-badge.medium { background-color: rgba(212, 175, 55, 0.15); color: var(--color-gold-light); border: 1px solid var(--border-gold); }
.route-risk-badge.high { background-color: rgba(166, 42, 36, 0.15); color: #ff6b66; border: 1px solid rgba(166, 42, 36, 0.3); }

.route-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.route-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.route-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.route-stat-item {
  background-color: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.02);
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.route-stat-item span:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.route-stat-item span:last-child {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.route-rewards h4, .route-costs h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Footer Section */
footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-gold);
  padding: 4rem 2rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-details h2 {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .tool-layout {
    grid-template-columns: 1fr;
  }
  
  .tool-sidebar {
    position: static;
    max-height: 300px;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.8rem 1.5rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  
  .main-nav.show {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-banner {
    padding: 4rem 1.5rem;
  }
  
  .hero-banner h2 {
    font-size: 2.2rem;
  }
  
  .content-section {
    padding: 2rem 1rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Flawless Mobile Layout for Building & Alp Sidebars */
  .tool-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tool-sidebar {
    position: static;
    max-height: none;
    padding: 1rem;
    border-bottom: 1px solid var(--border-gold);
  }
  
  /* Convert item list to horizontally scrollable tags/chips on mobile */
  .item-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .item-list::-webkit-scrollbar {
    height: 4px;
  }
  
  .item-list-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 0.5rem 0.8rem;
    scroll-snap-align: start;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .item-list-btn .item-badge {
    display: none; /* Hide badge in horizontal scroll to save space */
  }
  
  .detail-panel {
    padding: 1.2rem;
  }
  
  .detail-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .detail-meta-badge {
    align-self: flex-start;
  }
  
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Grid of compact card tiles for troop inputs on mobile */
  .simulator-troop-inputs {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
  }
  
  .troop-input-card {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.5rem;
    text-align: center;
  }
  
  .troop-input-info {
    align-items: center;
  }
  
  .troop-input-name {
    font-size: 0.85rem;
  }
  
  .troop-input-field {
    width: 100%;
    max-width: 90px;
    font-size: 0.95rem;
  }
  
  .quiz-options-list {
    grid-template-columns: 1fr;
  }
  
  .calc-result-grid {
    flex-direction: column;
    gap: 1rem;
  }
  
  .result-card {
    width: 100%;
  }
}

/* Custom Image Styling for Game Assets */
.list-item-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 2px;
  flex-shrink: 0;
}

.detail-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.hero-card-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-gold-glow);
  background-color: var(--bg-darker);
}

.simulator-item-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(51, 179, 166, 0.15);
  flex-shrink: 0;
}

/* Additional Responsive Fixes */
@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
  }
  
  .hero-actions a {
    display: inline-block;
    width: auto;
  }
  
  .privacy-card, .terms-card, .delete-card {
    padding: 2rem 1.2rem;
  }
}

/* Store Badge Image Styling */
.store-link {
  display: inline-block;
  transition: var(--transition-smooth);
}

.store-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.store-badge-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-store-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
  width: 100%;
}

.footer-store-badges .store-badge-img {
  height: 38px;
  width: auto;
}

/* Web Play Button & Navigation CTA Styles */
.web-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: var(--bg-dark);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-gold-dark);
  white-space: nowrap;
}

.web-play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  filter: brightness(1.1);
}

.web-play-btn i {
  font-size: 1.15rem;
}

.footer-web-play-btn {
  height: 38px;
  padding: 0 1.2rem;
  font-size: 0.82rem;
}

.play-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-turquoise-light), var(--color-turquoise));
  color: var(--bg-dark);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--color-turquoise-dark);
  box-shadow: 0 0 10px rgba(51, 179, 166, 0.2);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  align-self: center;
  text-align: center;
}

.play-nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(51, 179, 166, 0.5);
  filter: brightness(1.1);
}

.play-nav-link i {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .play-nav-link {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   12. Oyuncu Rehberi (Gameplay Guide) Styles
   ========================================================================== */
.guide-detail-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2.5rem;
}

.guide-section {
  display: none;
}

.guide-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.guide-section-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--color-gold);
  border-bottom: 2px solid var(--border-gold);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.guide-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.guide-card {
  background-color: var(--bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  border-left: 3px solid var(--color-gold);
}

.guide-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.guide-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

.guide-stepped-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.guide-stepped-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.guide-stepped-list li::before {
  content: "✦";
  position: absolute;
  left: 0.2rem;
  color: var(--color-gold);
}

/* Guide Grid Layout */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.guide-grid-item {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 1.2rem;
}

.guide-grid-item h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.guide-grid-item p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Custom Tactical Alert Boxes */
.guide-alert {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.guide-alert.info {
  background-color: rgba(51, 179, 166, 0.06);
  border: 1px solid rgba(51, 179, 166, 0.2);
  border-left: 4px solid var(--color-turquoise);
  color: var(--text-main);
}

.guide-alert.info .guide-alert-icon {
  color: var(--color-turquoise-light);
}

.guide-alert.warning {
  background-color: rgba(166, 42, 36, 0.08);
  border: 1px solid rgba(166, 42, 36, 0.2);
  border-left: 4px solid var(--color-crimson);
  color: var(--text-main);
}

.guide-alert.warning .guide-alert-icon {
  color: #ff6b66;
}

.guide-alert.tip {
  background-color: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 4px solid var(--color-gold);
  color: var(--text-main);
}

.guide-alert.tip .guide-alert-icon {
  color: var(--color-gold-light);
}

.guide-alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.guide-alert-content {
  flex-grow: 1;
}

.guide-alert-content strong {
  display: block;
  margin-bottom: 0.3rem;
}

/* Guide Table Styling */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  text-align: left;
  font-size: 0.92rem;
}

.guide-table th {
  background-color: var(--bg-darker);
  color: var(--color-gold-light);
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--border-gold);
}

.guide-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.guide-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
  color: var(--text-main);
}

/* Responsive Overrides for Guide */
@media (max-width: 768px) {
  .guide-detail-panel {
    padding: 1.2rem;
  }
  .guide-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

