/**
 * YCF – Leaders & hub map UI
 * Inspired by event/overview landing patterns (e.g. hackathon overviews) and
 * hub / network map presentation (e.g. Plan ₿ Network hubs).
 */

/* --- Team: hackathon-style hero + tabs --- */
.ycf-leader-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 90% 60% at 50% -30%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(6, 182, 212, 0.08), transparent 50%),
    linear-gradient(165deg, #12161f 0%, #0a0c10 50%, #08090c 100%);
}

.ycf-leader-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.ycf-leader-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.ycf-leader-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ycf-leader-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.ycf-leader-tab[aria-current="true"] {
  color: #08090c;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  border-color: rgba(34, 211, 238, 0.5);
}

.ycf-overview-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 23, 29, 0.65);
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ycf-overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.ycf-overview-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}

/* Bento leadership */
.ycf-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ycf-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
  }

  .ycf-bento-feature {
    grid-column: span 7;
    grid-row: span 2;
  }

  .ycf-bento-side {
    grid-column: span 5;
  }
}

.ycf-leader-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(26, 30, 38, 0.95), rgba(15, 17, 22, 0.9));
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ycf-leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.ycf-leader-card__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(34, 211, 238, 0.9);
  font-variant-numeric: tabular-nums;
}

.ycf-dept-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 20, 26, 0.85);
  transition: border-color 0.2s, transform 0.2s;
}

.ycf-dept-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateY(-2px);
}

/* --- Contact: Plan B–style hub map --- */
.ycf-hub-map-shell {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 100% 80% at 30% 20%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6, 182, 212, 0.1), transparent 45%),
    linear-gradient(180deg, #0e1218 0%, #08090c 100%);
}

.ycf-hub-map-dots {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(34, 211, 238, 0.35) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.ycf-hub-map-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .ycf-hub-map-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
    padding: 1.5rem;
  }
}

.ycf-hub-map-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 320px;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 40px 80px -30px rgba(0, 0, 0, 0.75);
}

@media (min-width: 1024px) {
  .ycf-hub-map-frame {
    min-height: 420px;
  }
}

.ycf-hub-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: grayscale(0.4) contrast(1.08) brightness(0.88);
  transition: filter 0.45s ease;
}

@media (min-width: 1024px) {
  .ycf-hub-map-frame iframe {
    min-height: 420px;
  }
}

.ycf-hub-map-frame:hover iframe {
  filter: grayscale(0.05) contrast(1.02) brightness(0.96);
}

.ycf-hub-map-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  pointer-events: none;
}

.ycf-hub-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.35), 0 0 20px rgba(34, 211, 238, 0.45);
  animation: ycf-hub-pulse 2.2s ease-in-out infinite;
}

@keyframes ycf-hub-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}

.ycf-hub-locations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ycf-hub-location-card {
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.75);
  transition: border-color 0.2s, background 0.2s;
}

.ycf-hub-location-card:hover {
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(18, 22, 30, 0.85);
}

.ycf-hub-location-card--active {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(8, 9, 12, 0.9));
}
