/* Specific styling for cards, buttons, and individual components */
.card-elegant {
  position: relative;
  z-index: 3000;
  background: var(--clr-white);
  border-radius: 12px;
  padding: var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Button Components */
.btn-primary-civic {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background-color: var(--clr-accent);
  color: var(--clr-white) !important;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 500;
  transition: var(--transit-smooth);
  border: none;
  cursor: pointer;
}

.btn-primary-civic:hover {
  background-color: var(--clr-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 109, 91, 0.2);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  border: 1px solid transparent;
}

.badge.upcoming {
  background: rgba(0, 109, 91, 0.1);
  color: var(--clr-accent);
  border-color: rgba(0, 109, 91, 0.2);
}
.badge.ongoing {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  border-color: rgba(25, 135, 84, 0.2);
}
.badge.completed {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.2);
}

/* News List Specifics */
#news-list-container .card-elegant {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

#news-list-container .card-elegant:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* Forms */
.form-control-civic {
  display: block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--clr-text-main);
  background-color: var(--clr-bg);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.08);
  appearance: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  outline: none;
}

.form-control-civic:focus {
  border-color: var(--clr-accent);
  background-color: var(--clr-white);
  box-shadow: 0 0 0 4px rgba(0, 109, 91, 0.05);
}

.form-control-civic::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.5;
}

select.form-control-civic {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px 10px;
}

/* Footer Components */
.footer-yorknew {
  background-color: #050505 !important;
  color: white;
}

.footer-newsletter-card {
  background: white;
  color: #000;
  padding: 2.5rem;
  border-radius: 1.5rem;
  max-width: 350px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: var(--transit-fast);
}

.footer-link:hover {
  color: white !important;
}

.btn-subscribe {
  transition: var(--transit-smooth);
  border: 1px solid #000;
}

.btn-subscribe:hover {
  background: #000 !important;
  color: #fff !important;
}

.btn-subscribe span {
  transition: transform 0.3s ease;
}

.btn-subscribe:hover span {
  transform: translateX(4px) translateY(-4px);
}

.social-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: black;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-circle:hover {
  transform: scale(1.15);
  background-color: var(--clr-accent) !important;
  color: white !important;
}

#footer-branding-container {
  overflow: hidden;
  background: #111;
  display: flex;
  justify-content: center;
}

.branding-clipped {
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.torch-love {
  background-image:
    linear-gradient(rgba(255, 0, 0, 0.5), rgba(255, 0, 0, 0.5)),
    url("../images/imgs/footer_bg.jpg");
}

.torch-hyd {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("../images/imgs/footer_bg.jpg");
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  opacity: 0.7;
  padding-top: 2rem;
}

.hover-accent:hover {
  color: var(--clr-accent) !important;
}

.footer-branding-section {
    overflow-x: hidden;
    width: 100%;
}

.footer-links-list {
  font-size: 0.95rem;
}

.branding-love {
  font-size: 10vw;
  font-weight: 900;
  line-height: 0.8;
  font-family: var(--font-display) !important;
  letter-spacing: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.branding-hyd {
  font-size: 13vw;
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: 0;
  margin: 15px auto 0 auto;
  font-family: var(--font-display) !important;
  text-align: center;
}

footer {
  position: relative;
  z-index: 5000;
  background: #111; /* Grey background */
}

footer .container {
  max-width: 85% !important;
}

/* Luxury Footer Components - Black Theme */
.footer-premium-top {
  background-color: #111;
  padding: 2rem 0 0.5rem 0;
  position: relative;
  z-index: 5000;
}

.contact-card-premium {
  background: #000; /* Solid Black Card */
  border-radius: 24px;
  padding: 2.2rem 3.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-card-premium h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.contact-card-premium p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 250px;
  margin-bottom: 0;
  line-height: 1.5;
}

.form-contact-small {
  display: flex;
  gap: 1rem;
  max-width: 500px;
}

.premium-input-minimal {
  flex: 1;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  padding: 1rem 1.4rem !important;
  border-radius: 12px !important;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-input-minimal.input-pill {
  border-radius: 50px !important;
}

.premium-input-minimal:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(0, 255, 200, 0.5) !important;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.05);
  outline: none;
}

.footer-grid-luxury {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column-luxury h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.footer-column-luxury ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column-luxury li {
  margin-bottom: 1.2rem;
}

.footer-link-luxury {
  color: #64748b !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transit-fast);
  display: inline-flex;
  align-items: center;
}

.footer-link-luxury:hover {
  color: #ffffff !important;
  transform: translateX(5px);
}

.newsletter-premium p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.newsletter-input-group {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

.newsletter-input-group input {
  background: transparent !important;
  border: none !important;
  color: white !important;
  flex: 1;
  padding: 0.8rem 1.5rem !important;
  font-size: 0.9rem;
}

.btn-newsletter-premium {
  background: #ffffff;
  color: black !important;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transit-fast);
}

.btn-newsletter-premium:hover {
  background: var(--clr-accent);
  transform: scale(1.1);
}

.footer-bottom-luxury {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2.5rem;
}

@media (min-width: 576px) and (max-width: 1399px) {
  .contact-card-premium {
    padding: 2.2rem 2rem;
  }
  
  .contact-card-premium .d-flex.justify-content-between {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }

  .form-card-luxury {
    width: 100% !important;
    margin-top: 2rem;
  }

  /* Centering Header Info */
  .contact-card-premium p {
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .contact-card-premium .flex-shrink-0 {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }

  /* Tablets: Force everything to align and flow correctly */
  #join-mission-form {
    max-width: 100% !important;
    margin: 2rem 0 0 0 !important;
  }

  /* Tablet Perspective Fix: CSS Grid Implementation */
  .contact-card-premium .d-flex.justify-content-between {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Tablet & iPad Pro Fix: Premium Scaling & Alignment */
  .contact-card-premium {
      padding: 3rem 2.5rem !important;
  }

  .form-card-luxury {
    width: 100% !important;
    max-width: 100% !important;
    margin: 3rem 0 0 0 !important;
  }

  #join-mission-form .row {
    display: grid !important;
    grid-template-columns: repeat(20, 1fr) !important;
    gap: 30px 20px !important; /* Increased vertical gap */
    margin: 0 !important;
    padding: 0 !important;
  }

  .premium-input-minimal {
      padding: 1.4rem 1.8rem !important; /* Upscaled hit area for Pro tablets */
      font-size: 1.1rem !important;
      border-radius: 50px !important; /* Universal pill shape */
  }

  #mission-message {
      border-radius: 24px !important; /* Slightly less rounded than pills */
      padding: 1.4rem 1.8rem !important;
      min-height: 160px !important;
  }

  /* Row 1: 50/50 exactly aligned */
  .form-card-luxury .row > .col-md-3 {
    grid-column: span 10 !important;
  }
  
  /* Row 2: 15/20 for message (75%), 5/20 for button (25%) */
  .form-card-luxury .row > .col-md-4 {
    grid-column: span 15 !important; 
  }
  
  .form-card-luxury .row > .col-md-2 {
    grid-column: span 5 !important;
    align-self: end;
  }

  #join-mission-form button {
      width: 100% !important;
      min-height: 62px !important; /* Taller, more premium button */
      font-size: 1.1rem !important;
      border-radius: 50px !important;
      min-width: 160px; /* Prevent circle shape on wide screens */
  }

  /* Footer Bottom Bar Centering */
  .footer-bottom-luxury {
      flex-direction: column !important;
      gap: 1.5rem !important;
      text-align: center !important;
  }

  .footer-grid-luxury {
    grid-template-columns: 1fr !important;
    gap: 1.5rem; /* Reduced space around address */
    text-align: center;
  }

  .footer-column-luxury .d-flex {
      justify-content: center;
      gap: 2rem !important;
  }

  .footer-links-group {
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      justify-items: center;
  }

  /* Branding text scale fix */
  .branding-love, .branding-hyd {
    font-size: clamp(3rem, 10vw, 9rem) !important;
    letter-spacing: -3px !important;
    line-height: 0.8 !important;
  }
}

/* Hide bins and score when in footer, but keep wrapper for scroll button */
.game-hidden .bin-wrapper,
.game-hidden .session-score-dock,
.game-hidden #sbm-score-display {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(30px) !important;
}

@media (max-width: 575px) {
  .contact-card-premium {
    padding: 2.2rem 1.2rem;
  }

  .contact-card-premium .d-flex.align-items-center.pt-3 {
    flex-direction: column;
    align-items: center !important;
    gap: 1.2rem;
  }

  /* Force absolute full width for all form components on mobile */
  .form-card-luxury .row {
      margin: 0 !important;
  }

  .form-card-luxury .row > [class^="col-"] {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
  }

  .premium-input-minimal, 
  #mission-message,
  .btn-primary-civic {
      width: 100% !important;
      max-width: 100% !important;
      display: block !important;
      box-sizing: border-box !important;
      border-radius: 50px !important;
      font-size: 1.05rem !important; /* Increased for legibility */
      padding: 1.1rem 1.4rem !important;
  }

  .btn-primary-civic {
      min-height: 54px !important;
      justify-content: center !important;
      margin-top: 0.5rem;
  }

  #mission-message {
      border-radius: 20px !important;
      min-height: 140px; /* Taller for mobile typing */
  }

  .footer-grid-luxury {
      display: flex !important;
      flex-direction: column !important;
      gap: 3rem !important;
      text-align: center !important;
  }

  /* Center address logo and text on mobile */
  .footer-column-luxury li .d-flex {
      flex-direction: column !important;
      align-items: center !important;
      gap: 1.2rem !important;
      text-align: center !important;
  }

  .footer-column-luxury li .d-flex span {
      max-width: 100% !important;
  }

  .footer-links-group {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 2rem !important;
      width: 100% !important;
      text-align: left !important;
  }

  .footer-links-group .footer-column-luxury {
      padding-left: 15% !important;
  }

  .footer-bottom-luxury {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .branding-love, .branding-hyd {
      font-size: clamp(2.5rem, 10vw, 7rem) !important;
      line-height: 0.9 !important;
  }

  .footer-branding-section {
    padding: 1rem 0 !important;
  }
}

/* Team-Up! Branding Styles */
.teamup-branding {
    text-decoration: none !important;
    font-family: 'Varela Round', sans-serif !important;
    font-weight: 700; /* Bolder as requested */
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.teamup-branding:hover {
    transform: scale(1.05);
}

.team-text {
    color: #ffffff !important;
}

.up-text {
    color: #ff0000 !important; /* Pure Red */
}
