/* css/base.css — CSS variables, body, global layout utilities */

/* ================== CSS VARIABLES ================== */
:root {
  /* Backgrounds */
  --bg-primary: #f2ece0;
  --bg-secondary: #ece6d8;
  --bg-elevated: #e9ecef;
  --card-bg: #f9f3e6;
  --input-bg: #fdf9f2;

  /* Text */
  --text-primary: #333333;
  --text-secondary: #374151;
  --text-muted: #6c757d;
  --placeholder-color: #6c757d;

  /* Borders */
  --border-color: #b5a894;
  --border-color-subtle: #dee2e6;
  --input-border: #ced4da;

  /* Shadows */
  --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
  --navbar-shadow: 0 2px 8px rgba(0,0,0,0.1);

  /* Button accent colors */
  --primary-blue: #0d6efd;
  --primary-blue-hover: #1a73e8;
  --success-green: #198754;
  --danger-red: #dc3545;
  --warning-yellow: #ffc107;
  --secondary-gray: #6c757d;
  --info-cyan: #0dcaf0;
  --dark-charcoal: #343a40;

  /* Button rest-state text (differs from accent for readability) */
  --btn-warning-text: #856404;
  --btn-info-text: #0a7aab;

  /* Button hover/active text */
  --btn-primary-hover-text: #fff;
  --btn-success-hover-text: #fff;
  --btn-warning-hover-text: #000;
  --btn-danger-hover-text: #fff;
  --btn-secondary-hover-text: #fff;
  --btn-info-hover-text: #000;
  --btn-dark-hover-text: #fff;

  /* Button hover/active shadows */
  --btn-primary-shadow: 0 2px 10px rgba(13, 110, 253, 0.25);
  --btn-success-shadow: 0 2px 10px rgba(25, 135, 84, 0.25);
  --btn-warning-shadow: 0 2px 10px rgba(255, 193, 7, 0.35);
  --btn-danger-shadow: 0 2px 10px rgba(220, 53, 69, 0.25);
  --btn-secondary-shadow: 0 2px 10px rgba(108, 117, 125, 0.25);
  --btn-info-shadow: 0 2px 10px rgba(13, 202, 240, 0.3);
  --btn-dark-shadow: 0 2px 10px rgba(52, 58, 64, 0.25);

  /* Tables */
  --table-bg: transparent;
  --table-stripe-bg: rgba(0, 0, 0, 0.02);
  --table-header-bg: #e9ecef;

  /* Alerts */
  --alert-bg: #fff3cd;
  --alert-info-bg: #cff4fc;
  --alert-info-border: #9eeaf9;
  --alert-info-text: #055160;
  --alert-info-strong: #055160;
  --alert-warning-bg: #fff0c2;
  --alert-warning-border: #e6a000;
  --alert-warning-text: #5a3a00;
  --alert-warning-strong: #3d2600;
  --alert-danger-bg: #f8d7da;
  --alert-danger-border: #f5c2c7;
  --alert-danger-text: #842029;
  --alert-danger-strong: #842029;

  /* Overlays (trip card internals) */
  --overlay-soft: rgba(0, 0, 0, 0.03);
  --overlay-border: rgba(0, 0, 0, 0.07);

  /* Layout tokens */
  --btn-radius: 8px;
  --card-radius: 12px;
}

/* ================== GLOBAL BODY ================== */

/* Base Styles (Single Style, formerly Daylight) */
body {
    background-color: #f2ece0;
    color: #333333;
    font-size: 0.875rem;
}

/* Modern body override */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.5;
}

/* Headings */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }

/* Bootstrap utility overrides — use variables so dark mode flows automatically */
.text-secondary { color: var(--text-secondary) !important; }
.text-muted,
.form-text     { color: var(--text-muted) !important; }

/* ================== SPACING UTILITIES ================== */
.mb-4 {
  margin-bottom: 1.5rem !important;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

/* ================== CONTAINER WIDTH CAP ================== */
/* Wide screens: cap content width so it doesn't spread edge-to-edge */
@media (min-width: 1350px) {
  .container-fluid {
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================== VIDEO CONTAINER ================== */
.video-container {
    width: 100%;
}

.video-container iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

@media (max-width: 767.98px) {
    .video-container iframe {
        height: 200px;
    }
}
