/* ==========================================================================
   VIJERON DEFENSE STYLESHEET
   Tactical Defense Military Theme - Responsive & Multilingual
   ========================================================================== */

:root {
  --primary-navy: #00163b;
  --primary-blue: #003366;
  --accent-gold: #ffcc00;
  --accent-orange: #ff9900;
  --accent-red: #cc0000;
  --accent-green: #009933;
  --bg-dark: #0b1320;
  --bg-card-dark: #131f33;
  --bg-light: #f4f6f8;
  --border-color: #e2e8f0;
  --border-dark: #2d3748;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --font-main: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
}

/* Typography Utility */
.text-gold { color: var(--accent-gold); }
.text-orange { color: var(--accent-orange); }
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }
.text-white { color: #ffffff; }
.text-muted { color: var(--text-muted); }
.text-bold { font-weight: 700; }
.text-uppercase { text-transform: uppercase; }

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.top-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-tagline {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Language Selector */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: #334155;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 1000;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
}

body.rtl .lang-dropdown-menu {
  right: auto;
  left: 0;
}

.lang-dropdown-menu.show {
  display: block;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #e2e8f0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #1e293b;
}

.lang-item:hover {
  background: #1e293b;
  color: var(--accent-gold);
}

/* Main Navbar */
.main-header {
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  border: 1px solid #1e3a8a;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-title span {
  color: var(--accent-orange);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-navy);
  background: #f1f5f9;
  border-bottom: 2px solid var(--accent-gold);
}

/* Hamburger button for mobile */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #0f172a;
  z-index: 1001;
  padding: 24px;
  box-shadow: -5px 0 20px rgba(0,0,0,0.4);
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease;
}

body.rtl .mobile-nav-overlay {
  right: auto;
  left: 0;
  box-shadow: 5px 0 20px rgba(0,0,0,0.4);
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

body.rtl .mobile-close-btn {
  align-self: flex-start;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.mobile-nav-links a {
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
  display: block;
}

.mobile-nav-links a:hover {
  color: var(--accent-gold);
}

/* Backdrop */
.mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.mobile-backdrop.show {
  display: block;
}

/* ==========================================================================
   ADSENSE AD UNITS CONTAINER
   ========================================================================== */

.ad-wrapper {
  width: 100%;
  margin: 16px auto;
  text-align: center;
  background-color: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  box-sizing: border-box;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ad-leaderboard {
  max-width: 970px;
  min-height: 90px;
  margin: 0 auto;
}

.ad-in-content {
  max-width: 728px;
  min-height: 90px;
  margin: 20px auto;
}

.ad-sidebar {
  max-width: 300px;
  min-height: 250px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero-banner {
  background: linear-gradient(rgba(11, 19, 32, 0.92), rgba(11, 19, 32, 0.92)),
              radial-gradient(ellipse at center, #1e3a8a 0%, #0b1320 80%);
  color: #ffffff;
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 3px solid var(--accent-gold);
  position: relative;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.4;
}

.hero-divider {
  width: 140px;
  height: 3px;
  background: var(--accent-gold);
  margin: 16px auto;
  border-radius: 2px;
}

.hero-desc {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Search Box */
.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input-group {
  display: flex;
  background: #ffffff;
  border-radius: 50px;
  padding: 4px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 2px solid var(--accent-gold);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  border-radius: 50px;
  font-family: inherit;
}

.search-btn {
  background: var(--primary-navy);
  color: var(--accent-gold);
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-btn:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* ==========================================================================
   FEATURED / FLASHPOINTS SECTION
   ========================================================================== */

.section-padding {
  padding: 36px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 8px auto 0;
}

/* Flashpoints Grid */
.flashpoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.flashpoint-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flashpoint-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.flashpoint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flashpoint-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
}

.flashpoint-tag {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.flashpoint-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.flashpoint-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.btn-sm-tactical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-navy);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-sm-tactical:hover {
  background: var(--primary-blue);
  color: var(--accent-gold);
}

/* ==========================================================================
   TOP POWERS CARDS (2026)
   ========================================================================== */

.top-powers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.country-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

.country-card-header {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-badge {
  background: var(--accent-gold);
  color: var(--primary-navy);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 38px;
  text-align: center;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffae00);
  color: #000;
}

.rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  color: #000;
}

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

.country-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag-icon {
  font-size: 1.75rem;
}

.country-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.country-pwrindx {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.country-pwrindx strong {
  color: var(--accent-gold);
}

.country-card-body {
  padding: 16px;
  flex: 1;
}

.country-stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.country-card-footer {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.btn-card {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-card-primary {
  background: var(--primary-navy);
  color: #ffffff;
}

.btn-card-primary:hover {
  background: var(--primary-blue);
  color: var(--accent-gold);
}

.btn-card-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-card-outline:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   RANKINGS TABLE & FILTERS
   ========================================================================== */

.filter-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.filter-select {
  padding: 8px 12px;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary-blue);
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover,
.chip-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* Table styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.gfp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

body.rtl .gfp-table {
  text-align: right;
}

.gfp-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent-gold);
  white-space: nowrap;
}

.gfp-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

.gfp-table tr:hover {
  background: #f8fafc;
}

.table-rank-cell {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-navy);
  text-align: center;
  width: 60px;
}

.table-nation-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary-navy);
}

.table-nation-cell a {
  color: var(--primary-navy);
}

.table-nation-cell a:hover {
  color: var(--accent-orange);
}

.pwrindx-badge {
  background: #e2e8f0;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
}

/* ==========================================================================
   HEAD-TO-HEAD COMPARISON TOOL
   ========================================================================== */

.compare-selectors-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.country-selector-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selector-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.selector-dropdown {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.selector-dropdown:focus {
  border-color: var(--primary-navy);
}

.vs-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
}

/* Comparison Head-to-Head Cards */
.compare-header-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.compare-nation-hero {
  background: #0f172a;
  color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.compare-hero-flag {
  font-size: 4rem;
  margin-bottom: 8px;
}

.compare-hero-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.compare-hero-rank {
  display: inline-block;
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
}

/* Comparison Category Section */
.compare-category-block {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-title-header {
  background: #1e293b;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 4px solid var(--accent-gold);
}

body.rtl .category-title-header {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

.metric-comparison-row {
  display: grid;
  grid-template-columns: 120px 1fr 200px 1fr 120px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.metric-val-left {
  font-weight: 700;
  text-align: right;
  color: #0f172a;
}

.metric-bar-left-wrapper {
  padding: 0 10px;
  display: flex;
  justify-content: flex-end;
}

.metric-name-center {
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.metric-bar-right-wrapper {
  padding: 0 10px;
  display: flex;
  justify-content: flex-start;
}

.metric-val-right {
  font-weight: 700;
  text-align: left;
  color: #0f172a;
}

.comp-bar {
  height: 12px;
  border-radius: 6px;
  background: #cbd5e1;
  transition: width 0.5s ease;
}

.comp-bar.winner {
  background: var(--accent-green);
}

.comp-bar.loser {
  background: #cbd5e1;
}

/* ==========================================================================
   COUNTRY PROFILE PAGE
   ========================================================================== */

.profile-hero {
  background: linear-gradient(rgba(11, 19, 32, 0.94), rgba(11, 19, 32, 0.94)),
              radial-gradient(circle at top, #1e3a8a, #0b1320);
  color: #ffffff;
  padding: 40px 0;
  border-bottom: 3px solid var(--accent-gold);
}

.profile-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.profile-title-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-flag-big {
  font-size: 4.5rem;
}

.profile-country-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
}

.profile-badges {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.profile-rank-pill {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.profile-pwr-pill {
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  font-family: monospace;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Category Metric Grid */
.metrics-section {
  margin: 28px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
}

/* ==========================================================================
   COALITIONS BUILDER
   ========================================================================== */

.coalitions-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.coalition-box {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.coalition-box.alpha {
  border-top: 6px solid #2563eb;
}

.coalition-box.bravo {
  border-top: 6px solid #dc2626;
}

.coalition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.coalition-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.coalition-countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 80px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 16px;
}

.coalition-tag {
  background: #1e293b;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coalition-tag .remove-btn {
  cursor: pointer;
  color: #ef4444;
  font-weight: 900;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  background: #090e17;
  color: #94a3b8;
  padding: 48px 0 24px;
  border-top: 3px solid var(--primary-blue);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-quote {
    font-size: 1rem;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-header-cards {
    grid-template-columns: 1fr;
  }
  .coalitions-container {
    grid-template-columns: 1fr;
  }
  .metric-comparison-row {
    grid-template-columns: 80px 1fr 120px 1fr 80px;
    font-size: 0.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
