/* ===========================
   GLOBAL STYLES & VARIABLES
   =========================== */

:root {
  /* Light Mode Colors - Gold and Navy */
  --primary-color: #001a4d;
  --secondary-color: #FFB81C;
  --success-color: #16A34A;
  --danger-color: #DC2626;
  --warning-color: #F59E0B;
  --light-bg: #F5F5F5;
  --dark-bg: #001a4d;
  --text-dark: #001a4d;
  --text-light: #F5F5F5;
  --border-color: #FFB81C;
  --card-bg: #FFFFFF;
  --navbar-bg: #001a4d;
}

[data-theme="dark"] {
  /* Dark Mode Colors - Gold and Navy */
  --primary-color: #FFD700;
  --secondary-color: #FFB81C;
  --success-color: #86EFAC;
  --danger-color: #FCA5A5;
  --warning-color: #FCD34D;
  --light-bg: #0a1f47;
  --dark-bg: #0a1f47;
  --text-dark: #FFD700;
  --text-light: #001a4d;
  --border-color: #FFB81C;
  --card-bg: #1a3a6d;
  --navbar-bg: #001a4d;
}

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

html, body {
  font-family: "otta-pe", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: var(--light-bg);
  color: var(--text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

/* ===========================
   NAVBAR STYLES
   =========================== */

nav {
  background-color: var(--navbar-bg) !important;
  border-bottom: 2px solid var(--secondary-color);
  padding: 0.5rem 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark) !important;
  letter-spacing: 0.5px;
}

.nav-link {
  color: var(--text-dark) !important;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 1.1rem;
}

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

/* ===========================
   THEME TOGGLE BUTTON
   =========================== */

.theme-toggle {
  background: none;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */

.container-fluid {
  padding: 2rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   CARD STYLES
   =========================== */

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.card-body {
  color: var(--text-dark);
}

/* ===========================
   BUTTON STYLES
   =========================== */

.btn {
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #FFA600;
  border-color: #FFA600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 184, 28, 0.3);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: #229954;
  border-color: #229954;
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

/* ===========================
   FORM STYLES
   =========================== */

.form-control, .form-select {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.form-control:focus, .form-select:focus {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

label {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

/* ===========================
   TEXT STYLES
   =========================== */

h1, h2, h3, h4, h5, h6 {
  font-family: "harvester", sans-serif;
  font-weight: 900;
  font-style: normal;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

p {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

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

.mt-4 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.p-3 {
  padding: 1rem;
}

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

.rounded {
  border-radius: 8px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .nav-link {
    margin-left: 0.5rem;
    font-size: 0.9rem;
  }

  .theme-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
  }

  .container-fluid {
    padding: 1rem;
  }
}

/* ===========================
   ANIMATIONS & TRANSITIONS
   =========================== */

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

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

/* ===========================
   HOMEPAGE STYLES
   =========================== */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
  padding: 3rem 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  animation: fadeIn 0.6s ease-out;
}

.hero-section h1 {
  color: var(--text-dark);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-section .fs-5 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* How It Works Section */
.how-it-works-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.how-it-works-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
  border-radius: 2px;
}

.step-card {
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), #2980b9);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.step-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.9;
  margin-bottom: 0;
}

/* Rules Section */
.rules-section {
  background-color: transparent;
}

.rules-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.rules-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--danger-color), var(--warning-color));
  border-radius: 2px;
}

.rules-section .card {
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.rules-section .card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  border-left-color: var(--secondary-color);
}

.rules-section h5 {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.15rem;
}

.rules-section li {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Shared Spots Section */
.shared-spots-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.shared-spots-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #9b59b6, var(--secondary-color));
  border-radius: 2px;
}

.shared-spots-section .card {
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.shared-spots-section .card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.shared-spots-section .border-info {
  border-left: 4px solid var(--secondary-color) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* Timeline Section */
.timeline-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.timeline-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--warning-color), var(--danger-color));
  border-radius: 2px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--secondary-color), var(--success-color));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  font-size: 1.5rem;
  margin-right: 2rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}

.timeline-content {
  flex: 1;
  padding: 1.5rem;
  background-color: rgba(52, 152, 219, 0.05);
  border-left: 3px solid var(--secondary-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateX(5px);
}

.timeline-content h6 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.faq-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #f39c12, #e74c3c);
  border-radius: 2px;
}

.accordion-item {
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  border-radius: 8px;
}

.accordion-button {
  color: var(--text-light);
  font-weight: 600;
  background-color: #001a4d;
  border: none;
  padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: #001a4d;
  color: var(--secondary-color);
  border: none;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 2px solid var(--secondary-color);
  outline-offset: -2px;
}

.accordion-body {
  background-color: #001a4d;
  color: var(--text-light);
  border-top: none;
  padding: 1rem 1.5rem;
}

/* Contact Section */
.contact-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.contact-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #27ae60, var(--secondary-color));
  border-radius: 2px;
}

.contact-section .card {
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-section .card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.contact-section a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: #2980b9;
}

/* CTA Section */
.cta-section .card {
  border: 2px solid var(--secondary-color);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.02) 100%);
  transition: all 0.3s ease;
}

.cta-section .card:hover {
  border-color: #2980b9;
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.2);
  transform: translateY(-3px);
}

.cta-section .fs-5 {
  color: var(--text-dark);
}

/* Footer */
footer {
  background-color: var(--navbar-bg) !important;
  border-top: 2px solid var(--secondary-color);
  color: var(--text-light);
  font-weight: 500;
}

footer p {
  margin: 0;
  color: var(--text-light);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .step-card {
    margin-bottom: 1rem;
  }

  .rules-section h2,
  .shared-spots-section h2,
  .timeline-section h2,
  .faq-section h2,
  .contact-section h2,
  .how-it-works-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 40px;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-content h6 {
    font-size: 0.95rem;
  }

  .accordion-button {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section .fs-5 {
    font-size: 0.9rem !important;
  }

  .d-flex.gap-2.justify-content-center {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .rules-section h2,
  .shared-spots-section h2,
  .timeline-section h2,
  .faq-section h2,
  .contact-section h2,
  .how-it-works-section h2 {
    font-size: 1.5rem;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline::before {
    left: 15px;
  }
}

/* ===========================
   TEXT COLOR OVERRIDES - ALL TEXT TO YELLOW
   =========================== */

.text-muted {
  color: var(--text-dark) !important;
  opacity: 0.8;
}

p, span, li, h1, h2, h3, h4, h5, h6, small, label, .form-text {
  color: var(--text-dark) !important;
}
