/**
 * Footer Styles — 2026++ Modern Design
 *
 * Single source of truth for all footer styles.
 * Auto-loaded via src/View/partials/footer.php template.
 *
 * - Bootstrap 5.3 CSS variables for dark/light mode
 * - Footer-scoped design tokens
 * - Inline SVG social icons (0 HTTP)
 * - focus-visible for keyboard a11y
 * - No !important, no hardcoded hex
 */

/* ========================================
   Design Tokens — Light Mode (default)
   ======================================== */
.e-footer {
  --footer-bg: #1e2328;
  --footer-surface: #272c32;
  --footer-surface-hover: #2f353c;
  --footer-text: #d1d5db;
  --footer-muted: #9ca3af;
  --footer-accent: #7cb8f0;
  --footer-accent-hover: #a0cef5;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --footer-card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.35);
  --footer-cta-gradient: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
  --footer-cta-glow: rgba(220, 53, 69, 0.35);
}

[data-bs-theme="light"] .e-footer {
  --footer-bg: #2b3035;
  --footer-surface: #343a40;
  --footer-surface-hover: #3d444b;
  --footer-text: #e9ecef;
  --footer-muted: #adb5bd;
  --footer-accent: #8bb8e8;
  --footer-accent-hover: #b0d0f0;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --footer-card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .e-footer {
  --footer-bg: #0d1117;
  --footer-surface: #151c26;
  --footer-surface-hover: #1a2332;
  --footer-text: #d1d5db;
  --footer-muted: #8b949e;
  --footer-accent: #7cb8f0;
  --footer-accent-hover: #a0cef5;
  --footer-border: rgba(255, 255, 255, 0.06);
  --footer-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --footer-card-shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Footer Container
   ======================================== */
.e-footer {
  position: relative;
  width: 100%;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  overflow: visible;
}

/* Gradient top border */
.e-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f5576c, #f093fb, #fda085);
  z-index: 1;
}

/* ========================================
   Booking Cards
   ======================================== */
.e-footer .card {
  background: var(--footer-surface);
  border: 1px solid var(--footer-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--footer-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.e-footer .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--footer-card-shadow-hover);
}

.e-footer .card-img-top {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

.e-footer .card-body {
  padding: 1.25rem 1.5rem;
  background: transparent;
  color: var(--footer-text);
}

.e-footer .card-title {
  text-align: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.e-footer .card-text {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--footer-muted);
  line-height: 1.5;
}

.e-footer .card-footer {
  background: transparent;
  border-top: 1px solid var(--footer-border);
  padding: 1rem 1.5rem;
}

.e-footer .card-footer .btn-danger {
  width: 100%;
  background: var(--footer-cta-gradient);
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.e-footer .card-footer .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--footer-cta-glow);
}

.e-footer .card-footer .btn-danger:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
}

/* ========================================
   Legal Links
   ======================================== */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 2.5rem auto 1.5rem;
  padding: 0;
}

.footer-legal a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  position: relative;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dot separator between legal links */
.footer-legal span:not(:last-child)::after {
  content: "·";
  color: var(--footer-muted);
  margin-left: 1.25rem;
  font-weight: 700;
  opacity: 0.5;
}

/* ========================================
   Social Links (Inline SVG Icons)
   ======================================== */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--footer-border);
  border-radius: 0.625rem;
  background: var(--footer-surface);
  color: var(--footer-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.footer-social__link:hover {
  transform: scale(1.08);
  border-color: var(--footer-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-social__link:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  border-color: var(--footer-accent);
}

.footer-social__link svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

/* Brand hover colors */
.footer-social__link--youtube:hover {
  border-color: #ff0000;
  color: #ff0000;
}

.footer-social__link--telegram:hover {
  border-color: #26a5e4;
  color: #26a5e4;
}

.footer-social__link--instagram:hover {
  border-color: #e4405f;
  color: #e4405f;
}

.footer-social__link--facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}

.footer-social__link--sitemap {
  /* Text link variant — wider */
  width: auto;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.4rem;
}

.footer-social__link--sitemap svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer-social__link--sitemap:hover {
  border-color: var(--footer-accent);
  color: var(--footer-accent);
}

/* ========================================
   Bottom Bar
   ======================================== */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
  font-size: 0.85rem;
}

.footer-copyright-link {
  color: var(--footer-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright-link:hover {
  color: var(--footer-accent-hover);
}

.footer-copyright-link:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767.98px) {
  .e-footer {
    padding: 2rem 0 1rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-legal span:not(:last-child)::after {
    content: none;
  }

  .footer-bottom-bar {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .e-footer {
    padding: 1.5rem 0 1rem;
  }

  .e-footer .card {
    border-radius: 12px;
  }

  .e-footer .card-body {
    padding: 1rem 1.25rem;
  }

  .e-footer .card-footer {
    padding: 0.75rem 1.25rem;
  }

  .e-footer .card-footer .btn-danger {
    border-radius: 8px;
  }
}
