/* ==========================
   Theme variables
   ========================== */
:root {
  --fsr-bg: #071a12;
  --fsr-bg-soft: #0b2117;
  --fsr-surface: #0f261b;
  --fsr-border: #1c3a29;
  --fsr-accent: #e22c2c;
  --fsr-accent-dark: #b51f1f;
  --fsr-text: #f3f6f5;
  --fsr-muted: #c7d2cd;
}


/* ==========================
   Base layout
   ========================== */
.fsr-body {
  background: linear-gradient(135deg, #071a12 0%, #0a1f15 45%, #0e2a1c 100%);
  color: var(--fsr-text);
  min-height: 100vh;
}

.fsr-container {
  padding-top: 1.5rem;
  padding-bottom: 6rem;
}

.fsr-navbar {
  border: 1px solid var(--fsr-border);
  background: rgba(8, 24, 16, 0.7);
  border-radius: 0.75rem;
}

.fsr-brand {
  letter-spacing: 0.06em;
}


/* ==========================
   Panels & surfaces
   ========================== */
.fsr-panel {
  background: var(--fsr-surface);
  border: 1px solid var(--fsr-border);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--fsr-text);
}

.fsr-panel .card-header {
  background: #0b2016;
  border-bottom: 1px solid var(--fsr-border);
}

.fsr-hero {
  background: linear-gradient(120deg, rgba(226, 44, 44, 0.12), rgba(15, 38, 27, 0.7));
  border: 1px solid var(--fsr-border);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
}

.fsr-countdown-panel {
  background: linear-gradient(120deg, rgba(8, 24, 16, 0.45), rgba(15, 38, 27, 0.45));
  border: 1px solid var(--fsr-border);
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
}

.fsr-countdown-panel .text-uppercase {
  margin-bottom: 0.25rem;
}


/* ==========================
   Hero / Typography
   ========================== */
.fsr-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--fsr-text);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.fsr-hero-lead {
  color: var(--fsr-muted);
  font-size: 1.1rem;
}


/* ==========================
   Countdown component
   ========================== */
.fsr-countdown {
  gap: 0.25rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.fsr-countdown-tile {
  background: var(--fsr-bg-soft);
  border: 1px solid var(--fsr-border);
  border-radius: 0.5rem;
  padding: 0.25rem 0.4rem;
  min-width: 56px;
  box-sizing: border-box;
  flex: 1 1 0;
  max-width: calc((100% - 0.75rem) / 4);
}

.fsr-countdown-value {
  font-size: 1rem;
  font-weight: 700;
}

/* Larger sizes on wider screens */
@media (min-width: 768px) {
  .fsr-countdown-tile {
    min-width: 88px;
    padding: 0.5rem 0.65rem;
    border-radius: 0.7rem;
    max-width: calc((100% - 1.5rem) / 4);
  }
  .fsr-countdown-value {
    font-size: 1.4rem;
  }
}

@media (min-width: 1200px) {
  .fsr-countdown-tile {
    min-width: 140px;
    padding: 1rem 0.75rem;
    border-radius: 0.85rem;
    max-width: none;
  }
  .fsr-countdown-value {
    font-size: 2.2rem;
  }
}

/* On desktop ensure the "Mancano" label stays on its own line and countdown sits below */
@media (min-width: 992px) {
  .fsr-hero .text-uppercase {
    display: block;
    width: 100%;
  }
  .fsr-countdown {
    display: flex !important;
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
    gap: 0.5rem;
  }
  .fsr-countdown-tile {
    flex: 0 1 auto;
    max-width: 25%;
  }
}

/* Small label sizes inside tiles */
.fsr-countdown-tile .small,
.fsr-countdown-tile .text-uppercase {
  font-size: 0.6rem;
  line-height: 1;
}


/* ==========================
   Buttons
   ========================== */
.fsr-btn-primary {
  background: var(--fsr-accent);
  border-color: var(--fsr-accent);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fsr-btn-primary:hover,
.fsr-btn-primary:focus {
  background: var(--fsr-accent-dark);
  border-color: var(--fsr-accent-dark);
  color: #ffffff;
}


/* ==========================
   Footer / Bottom nav
   ========================== */
.fsr-footer {
  border-top: 1px solid var(--fsr-border);
  margin-top: 2rem;
  color: var(--fsr-muted);
}

.fsr-bottom-nav {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  background: rgba(8, 24, 16, 0.9);
  border: 1px solid var(--fsr-border);
  border-radius: 1.1rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  z-index: 1030;
}

.fsr-bottom-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--fsr-text);
  text-decoration: none;
  border-radius: 0.75rem;
}

.fsr-bottom-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.fsr-bottom-icon svg {
  width: 100%;
  height: 100%;
}

.fsr-bottom-link:hover,
.fsr-bottom-link:focus {
  background: rgba(226, 44, 44, 0.18);
  color: #ffffff;
}


/* ==========================
   Utilities
   ========================== */
.fsr-body .text-secondary {
  color: var(--fsr-muted) !important;
}

