/**
 * YCF Neo-Futurist / Web3-minimal layer
 * Glass bento tiles, judge-style leader cards (duotone → color), timeline, pill CTAs.
 * Stack after ycf-theme.css; uses existing YCF tokens where possible.
 */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&display=swap");

:root {
  --ycf-neo-bg-deep: #0a0a0a;
  --ycf-neo-navy: #001529;
  --ycf-neo-glass: rgba(18, 22, 30, 0.55);
  --ycf-neo-glass-border: rgba(255, 255, 255, 0.1);
  --ycf-neo-glow: rgba(34, 211, 238, 0.45);
  --ycf-neo-radius: 16px;
  --ycf-neo-font-display: "Archivo", var(--ycf-font, system-ui, sans-serif);
}

/* --- Glass bento surface --- */
.ycf-neo-glass-panel {
  border-radius: var(--ycf-neo-radius);
  border: 1px solid var(--ycf-neo-glass-border);
  background: var(--ycf-neo-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.06),
    0 24px 48px -24px rgba(0, 0, 0, 0.55);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.ycf-neo-glass-panel:hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 32px 64px -28px rgba(0, 0, 0, 0.6);
}

/* --- Bento grid (home / dashboards) --- */
.ycf-neo-bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

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

  .ycf-neo-bento-wide {
    grid-column: span 12;
  }

  .ycf-neo-bento-third {
    grid-column: span 4;
  }

  .ycf-neo-bento-half {
    grid-column: span 6;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ycf-neo-bento-third {
    grid-column: span 6;
  }
}

.ycf-neo-bento-stat__value {
  font-family: var(--ycf-neo-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #22d3ee;
}

.ycf-neo-bento-stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.5rem;
}

.ycf-neo-bento-feature__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
  margin-bottom: 0.75rem;
}

.ycf-neo-bento-feature__title {
  font-family: var(--ycf-neo-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* --- Judges / leaders: duotone photo → color, lift --- */
.ycf-neo-judge {
  position: relative;
  border-radius: var(--ycf-neo-radius);
  border: 1px solid var(--ycf-neo-glass-border);
  background: linear-gradient(155deg, rgba(26, 30, 38, 0.92), rgba(10, 12, 16, 0.94));
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease;
}

.ycf-neo-judge:hover {
  transform: translateY(-5px);
  box-shadow:
    0 28px 56px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(34, 211, 238, 0.14);
}

.ycf-neo-judge__photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  flex-shrink: 0;
}

.ycf-neo-judge__photo--hero {
  width: 100%;
  max-width: 11rem;
  aspect-ratio: 1;
}

@media (min-width: 768px) {
  .ycf-neo-judge__photo--hero {
    max-width: 13.5rem;
  }
}

.ycf-neo-judge__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.88);
  transition: filter 0.45s ease, transform 0.45s ease;
  transform: scale(1.03);
}

.ycf-neo-judge:hover .ycf-neo-judge__photo img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1);
}

.ycf-neo-judge__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 21, 41, 0.5), rgba(34, 211, 238, 0.18));
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.ycf-neo-judge:hover .ycf-neo-judge__photo::after {
  opacity: 0;
}

.ycf-neo-judge__body {
  min-width: 0;
}

.ycf-neo-judge__name {
  font-family: var(--ycf-neo-font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8fafc;
  line-height: 1.2;
}

.ycf-neo-judge__role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.35rem;
}

.ycf-neo-judge__social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ycf-neo-judge__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ycf-neo-judge__social a:hover {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 20px -4px var(--ycf-neo-glow);
}

/* Compact row layout (sidebar leaders) */
.ycf-neo-judge--row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem;
}

.ycf-neo-judge--row .ycf-neo-judge__photo {
  width: 5rem;
  height: 5rem;
  border-radius: 12px;
}

.ycf-neo-judge--row .ycf-neo-judge__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.ycf-neo-judge--row .ycf-neo-judge__social {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

/* Featured block: large horizontal */
.ycf-neo-judge--feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ycf-neo-judge--feature {
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    padding: 1.75rem 2rem;
  }
}

.ycf-neo-judge--feature .ycf-neo-judge__photo--hero {
  max-width: 10rem;
}

@media (min-width: 768px) {
  .ycf-neo-judge--feature .ycf-neo-judge__photo--hero {
    max-width: 11rem;
  }
}

/* Department grid cards: duotone avatar */
.ycf-neo-dept {
  border-radius: var(--ycf-neo-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ycf-neo-dept:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.55);
}

.ycf-neo-dept__avatar {
  position: relative;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ycf-neo-dept__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  transition: filter 0.4s ease;
}

.ycf-neo-dept:hover .ycf-neo-dept__avatar img {
  filter: grayscale(0) brightness(1);
}

.ycf-neo-dept__title {
  font-family: var(--ycf-neo-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.ycf-neo-dept__name {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.35rem;
}

/* --- Vertical timeline (events → projects) --- */
.ycf-neo-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.ycf-neo-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(255, 255, 255, 0.08));
}

.ycf-neo-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 0 0 2rem 2.25rem;
}

@media (min-width: 640px) {
  .ycf-neo-timeline__item {
    grid-template-columns: 7rem 1fr;
  }
}

.ycf-neo-timeline__item:last-child {
  padding-bottom: 0;
}

.ycf-neo-timeline__marker {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.65);
  background: var(--ycf-neo-bg-deep, #0a0a0a);
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ycf-neo-timeline__item--upcoming .ycf-neo-timeline__marker {
  background: transparent;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.ycf-neo-timeline__item--complete .ycf-neo-timeline__marker {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  border-color: #67e8f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  left: -2px;
  top: 0.05rem;
}

.ycf-neo-timeline__marker .fa-check {
  font-size: 0.5rem;
  color: #0a0a0f;
}

.ycf-neo-timeline__date {
  font-family: var(--ycf-neo-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.9);
  padding-top: 0.1rem;
}

.ycf-neo-timeline__title {
  font-family: var(--ycf-neo-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f5f9;
}

.ycf-neo-timeline__meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* --- Pill CTA --- */
.ycf-btn-pill-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #0a0a0f;
  border: 1px solid rgba(34, 211, 238, 0.4);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.ycf-btn-pill-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px -6px var(--ycf-neo-glow), 0 12px 32px -12px rgba(34, 211, 238, 0.35);
}

.ycf-btn-pill-glow--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
}

.ycf-btn-pill-glow--ghost:hover {
  border-color: rgba(34, 211, 238, 0.35);
  color: #22d3ee;
  box-shadow: 0 0 24px -8px var(--ycf-neo-glow);
}

/* Compact judge tile (e.g. home team strip) */
.ycf-neo-judge--mini {
  padding: 1.35rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ycf-neo-judge--mini .ycf-neo-judge__photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}

.ycf-neo-judge--mini .ycf-neo-judge__name {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.ycf-neo-judge--mini .ycf-neo-judge__role {
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

.ycf-neo-judge--mini .ycf-neo-judge__social {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  justify-content: center;
  width: 100%;
}
