/* ==========================================================================
   1. LOCAL GDPR-COMPLIANT FONTS
   ========================================================================== */
/* Inter Variable Font (Covers 100-900 weights natively) */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
}

/* ==========================================================================
   2. DYNAMIC COLOR SYSTEM & SURFACES
   ========================================================================== */
:root {
  --primary-color: #00ADB5;
  --primary-hover: #00888F;
  --border-radius-custom: 12px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Variables */
[data-bs-theme="dark"] {
  --surface-main: #0F172A;
  --surface-card: #1E293B;
  --surface-section: rgba(30, 41, 59, 0.5);
  --border-color: #334155;
  --text-main: #F1F5F9;
  --nav-bg: rgba(15, 23, 42, 0.85);
  --accent-glow: rgba(0, 173, 181, 0.15);
}

/* Enhanced Light Mode Theme Variables */
[data-bs-theme="light"] {
  --surface-main: #F8FAFC;        /* Soft slate off-white */
  --surface-card: #FFFFFF;        /* Crisp white cards */
  --surface-section: #EEF2F6;     /* Slate-tinted section backgrounds */
  --border-color: #CBD5E1;        /* Rich slate border for crisp boundaries */
  --text-main: #0F172A;           /* Deep navy-black text for high contrast */
  --nav-bg: rgba(248, 250, 252, 0.88);
  --accent-glow: rgba(0, 173, 181, 0.08);
}

/* ==========================================================================
   3. GLOBAL BASE STYLES
   ========================================================================== */
body {
  background-color: var(--surface-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Alternating Section Backgrounds */
.border-top.border-bottom {
  background-color: var(--surface-section) !important;
}

/* Navigation Custom Styling */
.navbar-custom {
  background-color: var(--nav-bg) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-link {
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* ==========================================================================
   4. COMPONENT STYLES
   ========================================================================== */
/* Primary Accents & Buttons */
.btn-accent {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  transition: var(--transition-smooth);
}

.btn-accent:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 173, 181, 0.3);
}

.badge-accent {
  background-color: var(--accent-glow);
  color: var(--primary-color);
  border: 1px solid rgba(0, 173, 181, 0.3);
  font-weight: 600;
}

/* Cards with Dynamic Elevation & Contrast */
.custom-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-custom);
  transition: var(--transition-smooth);
}

[data-bs-theme="light"] .custom-card {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
}

.custom-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 20px -8px rgba(0, 173, 181, 0.25);
}

/* Sponsor Hierarchy Cards */
.sponsor-tier-gold {
  border: 1px solid #F59E0B;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(0,0,0,0) 100%);
}

.sponsor-tier-silver {
  border: 1px solid var(--border-color);
}

.sponsor-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 1rem;
}

.sponsor-logo-wrapper img {
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: var(--transition-smooth);
}

.custom-card:hover .sponsor-logo-wrapper img {
  filter: grayscale(0%);
}

/* Footer Styling */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-card);
}

/* ==========================================================================
   5. UTILITY & LAYOUT HELPERS (CSP-COMPLIANT)
   ========================================================================== */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
}

.logo-motto {
  max-height: 160px;
}

.hero-description {
  max-width: 600px;
}

.bg-subtle {
  background-color: var(--surface-section);
}

.text-accent {
  color: var(--primary-color) !important;
}

.section-max-width {
  max-width: 620px;
}

.sponsor-logo-sm {
  height: 60px;
}
