/* ==========================  
   Tufted Puffin Style Theme  
========================== */

/* 🔥 Brand Colors */
:root {
  --tp-primary-color: #ff5722;   /* Fiery Orange */
  --tp-accent-color: #607d8b;    /* Steel Gray */
  --tp-bg-color: #121212;        /* Charcoal */
  --tp-hover-color: #e64a19;     /* Dark Orange */
  --tp-text-color: #f5f5f5;      /* Light Text */
  --tp-highlight: #29b6f6;       /* Ice Blue Accent */
}

/* ==========================  
   Global Typography & Body  
========================== */
body {
  background-color: var(--tp-bg-color);
  color: var(--tp-text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
}

h1, h2, h3, h4 {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tp-primary-color);
}

/* ==========================  
   Hero Section  
========================== */
.hero-section {
  background-image: url('/events/tufted-puffin/assets/images/cover.jpg') !important;
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--tp-text-color);
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--tp-highlight);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

/* ==========================  
   Buttons  
========================== */
.btn-primary {
  background: var(--tp-primary-color);
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  text-transform: uppercase;
  border-radius: 40px;
  transition: all 0.3s ease;
  color: #fff;
}

.btn-primary:hover {
  background: var(--tp-hover-color);
  transform: scale(1.05);
  box-shadow: 0px 4px 12px rgba(255, 87, 34, 0.5);
}

.btn-outline-primary {
  border: 2px solid var(--tp-highlight);
  color: var(--tp-highlight);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--tp-highlight);
  color: #000;
  border-color: var(--tp-highlight);
}

/* Pulse animation for hero CTA */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 87, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
  }
}

/* ==========================  
   Countdown Section  
========================== */
.countdown-timer .time-box {
  background: #1e1e1e;
  color: var(--tp-text-color);
  padding: 15px;
  border-radius: 8px;
  border: 2px solid var(--tp-primary-color);
  width: 100px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.2);
}

.countdown-timer .digits {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--tp-highlight);
}

.countdown em {
  font-size: 1rem;
  display: block;
  margin-top: 5px;
  text-transform: uppercase;
  color: var(--tp-accent-color);
}

/* ==========================  
   Navbar  
========================== */
.navbar {
  background-color: #1c1c1c;
  border-bottom: 3px solid var(--tp-primary-color);
}

.navbar-brand {
  color: var(--tp-highlight);
  font-weight: bold;
  font-size: 1.2rem;
}

.navbar-brand:hover {
  color: var(--tp-primary-color);
}

.navbar .nav-link {
  color: var(--tp-text-color);
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--tp-primary-color);
  background: transparent;
  border-bottom: 2px solid var(--tp-primary-color);
}

.navbar-toggler {
  border: none;
  background: transparent;
  outline: none;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245,245,245, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

@media (max-width: 991.98px) {
  .navbar .nav-link {
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid #333;
  }
}

.menu-logo {
  width: 80px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
}

/* Puffin Background Section */
.puffin-bg {
  background-color: #000;
  background-image: url('/events/tufted-puffin/assets/images/puffin-silhouette.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 40%;
  background-blend-mode: overlay;
  position: relative;
  z-index: 1;
}

.puffin-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.75);
  z-index: -1;
}

/* Reward Section Overlay Captions */
.rewards-section {
  background: linear-gradient(to bottom, #1a1a1a, #111);
}

.rewards-section .position-relative {
  position: relative;
}

.rewards-section .overlay-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Volunteer Page */
.volunteer-hero {
  background-image: url('/events/tufted-puffin/assets/images/volunteer-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.volunteer-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.volunteer-hero .container {
  position: relative;
  z-index: 1;
}

/* Race Details */
.hero-race-details {
  background-image: url('/events/tufted-puffin/assets/images/track-night.jpg') !important;
}

.waldport-track-img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}

.venue-caption {
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background: #1c1c1c;
  color: var(--tp-text-color);
  text-align: center;
  padding: 40px 20px;
  border-top: 3px solid var(--tp-primary-color);
}

footer a {
  color: var(--tp-highlight);
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  color: var(--tp-primary-color);
  text-decoration: underline;
}

/* Photo & Gallery Hover */
img {
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Lists & Awards */
ul.list-unstyled li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.text-muted small {
  color: #aaa !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-section {
    height: auto;
    padding: 60px 20px;
  }
  .countdown-timer {
    flex-wrap: wrap;
    gap: 15px;
  }
  .countdown-timer .time-box {
    width: 70px;
    padding: 10px;
  }
}
