/* ============================================================
   FIFA World Cup 2026 Trip Planner - Custom Styles
   ============================================================ */

/* --- Theme Colors --- */
:root {
  --navy-dark: #0a1628;
  --navy: #0f1f3d;
  --navy-light: #152040;
  --gold: #c9a84c;
  --gold-light: #e2c972;
}

/* --- Base --- */
* {
  scrollbar-width: thin;
  scrollbar-color: #2d3748 #0a1628;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: var(--navy-dark);
}
*::-webkit-scrollbar-thumb {
  background: #2d3748;
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #4a5568;
}

body {
  background: var(--navy-dark);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* --- Tailwind Custom Colors --- */
.bg-navy-dark { background-color: var(--navy-dark); }
.bg-navy { background-color: var(--navy); }
.bg-navy-light { background-color: var(--navy-light); }
.bg-gold { background-color: var(--gold); }
.text-gold { color: var(--gold); }
.text-navy-dark { color: var(--navy-dark); }
.border-gold { border-color: var(--gold); }
.ring-gold { --tw-ring-color: var(--gold); }

/* --- Navigation --- */
.nav-bar {
  background: linear-gradient(180deg, rgba(15, 31, 61, 0.98) 0%, rgba(10, 22, 40, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.tab-btn {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}
.tab-btn.tab-active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}
.tab-btn.tab-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* --- Welcome Modal --- */
.welcome-bg {
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
}

/* --- Match Cards --- */
.match-card {
  transition: all 0.2s ease;
}
.match-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- City Guide Cards --- */
.city-guide-card {
  transition: all 0.3s ease;
}
.city-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* --- Itinerary Day Lines --- */
.itinerary-day {
  transition: all 0.2s ease;
}

/* --- Buttons --- */
.itinerary-btn {
  transition: all 0.2s ease;
}
.itinerary-btn:hover {
  transform: scale(1.02);
}

/* --- Budget Bars --- */
.budget-bar {
  transition: width 0.5s ease;
}

/* --- Hero / Logo --- */
.logo-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, rgba(30, 64, 175, 0.05) 50%, rgba(201, 168, 76, 0.03) 100%);
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

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

.pulse-gold {
  animation: pulse-gold 2s infinite;
}

/* --- Filter inputs --- */
select, input[type="text"], input[type="number"], input[type="date"], input[type="time"], textarea {
  color-scheme: dark;
}

/* --- Print Styles --- */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .nav-bar, .tab-btn, button, .itinerary-btn, #welcome-modal, .no-print {
    display: none !important;
  }
  .bg-navy-light, .bg-navy-dark, .bg-navy {
    background: white !important;
    border: 1px solid #ddd !important;
  }
  .text-gold {
    color: #8B6914 !important;
  }
  .text-gray-400, .text-gray-300, .text-gray-500 {
    color: #333 !important;
  }
  * {
    color: #333 !important;
  }
  .tab-panel {
    display: block !important;
  }
  #panel-itinerary {
    display: block !important;
  }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
  .match-card {
    padding: 0.75rem;
  }
}

/* --- Selection --- */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: white;
}

/* --- Focus States --- */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

/* --- Tooltip --- */
[title] {
  cursor: help;
}

/* --- Table --- */
table {
  border-collapse: collapse;
}
th {
  font-weight: 600;
}
