/* ==========================================================================
   Youth & Junior Section (pages/jugend.php) Styles
   SV Fortuna Schneidlingen 1919 e.V.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Youth Page Hero Banner
   -------------------------------------------------------------------------- */
.youth-page-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.youth-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.youth-page-hero h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.youth-page-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 780px;
  margin: 0 auto 1.8rem;
  opacity: 0.92;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Coach Wanted Recruiting Showcase Banner
   -------------------------------------------------------------------------- */
.coach-wanted-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3D2F86 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 16px 45px rgba(49, 46, 129, 0.25);
  margin-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.coach-wanted-box::after {
  content: '\f1e3';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.coach-wanted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e11d48;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.coach-wanted-box h2 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.coach-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
}

.coach-benefit-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.coach-benefit-item i {
  font-size: 1.3rem;
  color: #38bdf8;
  margin-top: 2px;
}

.coach-benefit-item div strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 3px;
  color: #ffffff;
}

.coach-benefit-item div span {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.4;
  display: block;
  color: #f1f5f9;
}

/* --------------------------------------------------------------------------
   3. Stichtags- & Mädchenregel Info-Card
   -------------------------------------------------------------------------- */
.stichtag-notice-card {
  background: var(--theme-bg-surface, #ffffff);
  border-radius: 18px;
  border: 1px solid var(--theme-border-card, #e2e8f0);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--theme-card-shadow, 0 4px 18px rgba(0,0,0,0.04));
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.stichtag-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--theme-icon-box-bg, rgba(61, 47, 134, 0.08));
  color: var(--theme-icon-box-color, var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.girl-rule-note {
  background: var(--theme-bg-surface-subtle, #f8fafc);
  border-left: 3px solid var(--primary-color);
  padding: 0.6rem 0.9rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--theme-text-main);
  line-height: 1.5;
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   4. Youth Teams Showcase Cards (F, E, D, C, B Junioren)
   -------------------------------------------------------------------------- */
.youth-teams-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 5rem;
}

.youth-team-showcase {
  background: var(--theme-bg-surface, #ffffff);
  border-radius: 24px;
  border: 1px solid var(--theme-border-card, #e2e8f0);
  box-shadow: var(--theme-card-shadow, 0 8px 30px rgba(0, 0, 0, 0.05));
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youth-team-showcase:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(61, 47, 134, 0.12);
}

/* Dynamic Background blur image mappings */
.youth-blur-f { background-image: url('/images/team_f_jugend.webp'); }
.youth-blur-e { background-image: url('/images/team_e_jugend.webp'); }
.youth-blur-d { background-image: url('/images/team_d_jugend.webp'); }
.youth-blur-c { background-image: url('/images/team_c_jugend.webp'); }
.youth-blur-b { background-image: url('/images/team_b_jugend.webp'); }

.youth-team-img-wrap {
  position: relative;
  min-height: 340px;
  background: var(--theme-bg-surface-alt, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.youth-team-bg-blur {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.92) saturate(1.18);
  transform: scale(1.14);
  pointer-events: none;
  z-index: 1;
}

.youth-team-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}

.youth-team-img-main {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 3px solid #ffffff;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youth-team-img-wrap:hover .youth-team-img-main {
  transform: scale(1.025);
  box-shadow: 0 16px 40px rgba(61, 47, 134, 0.35);
}

.youth-team-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(61, 47, 134, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 4;
}

.youth-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 15px;
  z-index: 4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.youth-team-img-wrap:hover .youth-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.youth-team-body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.youth-team-body h3 {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--theme-text-heading, var(--primary-color));
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.youth-team-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-text-muted, #64748b);
  margin-bottom: 1.2rem;
  display: block;
}

.youth-info-pills {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.youth-pill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--theme-bg-surface-subtle, #f8fafc);
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border-card, #e2e8f0);
  font-size: 0.9rem;
  color: var(--theme-text-main, #334155);
}

.youth-pill-item i {
  color: var(--theme-icon-box-color, var(--primary-color));
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.youth-pill-item strong {
  color: var(--theme-text-main, #0f172a);
}

.pill-badge-girls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--theme-badge-bg, rgba(61, 47, 134, 0.08));
  color: var(--theme-badge-text, var(--primary-color));
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid rgba(61, 47, 134, 0.15);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Youth Placeholders & Leadership
   -------------------------------------------------------------------------- */
.youth-placeholder-wrap {
  background: linear-gradient(135deg, #1e1b4b 0%, #3D2F86 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 2.5rem 1.5rem;
}

.youth-placeholder-title {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0;
}

.youth-placeholder-sub {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.3rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4.5rem;
}

.leadership-card {
  background: var(--theme-bg-surface, #ffffff);
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid var(--theme-border-card, #e2e8f0);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.leadership-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(61, 47, 134, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.leadership-card strong {
  display: block;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.leadership-card span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  display: block;
}

/* --------------------------------------------------------------------------
   6. Responsive Layouts (Mobile & Tablet Optimization)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .youth-teams-container {
    gap: 2.5rem;
    margin-bottom: 3.5rem;
  }

  .youth-team-showcase {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .youth-team-img-wrap {
    min-height: 240px;
    height: 260px;
    padding: 1.25rem 1rem;
  }

  .youth-team-img-main {
    max-height: 230px;
    width: auto;
    max-width: 100%;
  }

  .youth-zoom-hint {
    opacity: 0.9;
    transform: translateY(0);
  }

  .youth-team-body {
    padding: 1.8rem 1.5rem;
  }

  .youth-team-body h3 {
    font-size: 1.85rem;
  }
}

@media (max-width: 768px) {
  .youth-page-hero {
    padding: 4.8rem 1.2rem 3.5rem;
  }

  .youth-page-hero h1 {
    font-size: 2.3rem;
  }

  .youth-page-hero p {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .youth-page-hero .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .youth-page-hero .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .coach-wanted-box {
    padding: 2rem 1.35rem;
    border-radius: 20px;
    margin-bottom: 3.5rem;
  }

  .coach-benefits-grid {
    grid-template-columns: 1fr;
  }

  .coach-wanted-box h2 {
    font-size: 1.9rem;
  }

  .coach-benefit-item {
    padding: 1rem;
    border-radius: 14px;
  }

  .stichtag-notice-card {
    padding: 1.25rem 1.1rem;
    gap: 0.85rem;
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .stichtag-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border-radius: 10px;
  }

  .girl-rule-note {
    font-size: 0.84rem;
    padding: 0.55rem 0.75rem;
  }

  .youth-team-img-wrap {
    min-height: 220px;
    height: 230px;
    padding: 1rem;
  }

  .youth-team-img-main {
    max-height: 205px;
    border-radius: 10px;
  }

  .youth-team-body {
    padding: 1.4rem 1.2rem;
  }

  .youth-team-body h3 {
    font-size: 1.7rem;
  }

  .youth-team-sub {
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
  }

  .youth-team-body p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
  }

  .youth-info-pills {
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .youth-pill-item {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    gap: 0.65rem;
    border-radius: 10px;
  }

  .youth-pill-item i {
    font-size: 1rem;
    width: 22px;
  }

  .pill-badge-girls {
    display: inline-flex;
    margin-left: 0;
    margin-top: 4px;
  }

  .youth-team-body .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3.5rem;
  }

  .leadership-card {
    padding: 1.2rem 1.1rem;
    border-radius: 16px;
  }

  .leadership-icon {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .youth-page-hero {
    padding: 4.2rem 0.9rem 2.8rem;
  }

  .youth-page-hero h1 {
    font-size: 2rem;
  }

  .coach-wanted-box {
    padding: 1.6rem 1rem;
    border-radius: 16px;
  }

  .coach-wanted-box h2 {
    font-size: 1.65rem;
  }

  .youth-teams-container {
    gap: 1.8rem;
  }

  .youth-team-showcase {
    border-radius: 16px;
  }

  .youth-team-img-wrap {
    min-height: 190px;
    height: 200px;
    padding: 0.75rem;
  }

  .youth-team-img-main {
    max-height: 180px;
    border-width: 2px;
  }

  .youth-team-badge {
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    padding: 3px 9px;
  }

  .youth-zoom-hint {
    bottom: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  .youth-team-body {
    padding: 1.15rem 0.9rem;
  }

  .youth-team-body h3 {
    font-size: 1.5rem;
  }

  .youth-pill-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
}
