/* Global visual polish layer for 2026 vibe UI. Keep rules scoped and non-destructive. */

:root {
  --vibe-surface-1: rgba(7, 15, 30, 0.78);
  --vibe-surface-2: rgba(5, 11, 24, 0.9);
  --vibe-border-soft: rgba(108, 152, 232, 0.26);
  --vibe-border-strong: rgba(90, 186, 255, 0.5);
  --vibe-shadow-lg: 0 18px 48px rgba(2, 8, 20, 0.5);
}

/* Mobile navbar panel: clearer information architecture */
@media (max-width: 991.98px) {
  .fecod-mobile-menu {
    max-height: min(78vh, calc(100vh - 88px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 178, 255, 0.65) rgba(8, 16, 30, 0.6);
  }

  .fecod-mobile-menu .navbar-nav {
    padding-bottom: 0.25rem;
  }
}

/* Home hero */
#news-carousel.news-carousel {
  position: relative;
  overflow: hidden;
}

#news-carousel .carousel-item {
  position: relative;
}

#news-carousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 360px at 84% 14%, rgba(255, 115, 58, 0.2), transparent 60%),
    radial-gradient(680px 280px at 12% 76%, rgba(42, 119, 255, 0.22), transparent 62%);
  pointer-events: none;
}

#news-carousel .carousel-content {
  max-width: min(94vw, 700px);
  margin-bottom: clamp(2.2rem, 5vh, 4.3rem);
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--vibe-border-soft);
  background: linear-gradient(150deg, rgba(6, 12, 24, 0.58), rgba(7, 15, 30, 0.4));
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

#news-carousel .carousel-title-link:hover {
  color: #ffffff;
  text-shadow: 0 0 22px rgba(130, 199, 255, 0.28);
}

#news-carousel .btn.btn-primary {
  border: 1px solid rgba(120, 200, 255, 0.38);
  box-shadow: 0 8px 22px rgba(35, 124, 232, 0.3);
}

#news-carousel .news-tab {
  opacity: 0.55;
}

#news-carousel .news-tab.active {
  opacity: 1;
}

/* Social hub cards */
#social-hub .social-grid > [class*="col-"] {
  display: flex;
}

#social-hub .social-card {
  width: 100%;
  min-height: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--vibe-border-soft);
  background: linear-gradient(155deg, var(--vibe-surface-1), var(--vibe-surface-2));
  box-shadow: var(--vibe-shadow-lg);
}

#social-hub .social-title {
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0;
}

#social-hub .social-embed-shell {
  flex: 1 1 auto;
  border: 1px solid rgba(107, 150, 230, 0.2);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(10, 21, 42, 0.7), rgba(6, 14, 28, 0.82));
  padding: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

#social-hub .social-carousel {
  width: 100%;
}

#social-hub .social-carousel .carousel-inner,
#social-hub .social-carousel .carousel-item {
  width: 100%;
}

#social-hub .instagram-media {
  margin: 0 auto !important;
  max-width: min(430px, 100%) !important;
  width: 100% !important;
  min-width: 0 !important;
}

#social-hub .twitter-tweet {
  margin: 0 auto !important;
  max-width: min(430px, 100%) !important;
  width: 100% !important;
}

#social-hub .social-cta {
  align-self: flex-start;
  border: 1px solid rgba(110, 171, 246, 0.34);
  border-radius: 999px;
  padding: 0.42rem 0.86rem;
  margin-top: 0;
}

/* Teams table block on home */
.fecod-table-wrapper {
  max-width: min(1320px, 96vw);
  margin: 0 auto;
  padding: 1.9rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--vibe-border-soft);
  background: linear-gradient(160deg, rgba(8, 16, 32, 0.88), rgba(4, 9, 19, 0.92));
  box-shadow: var(--vibe-shadow-lg);
}

.fecod-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.fecod-table thead th {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b6cdf3;
  border-bottom: 1px solid rgba(109, 151, 227, 0.34);
  padding: 0.78rem 0.65rem;
}

.fecod-table tbody td {
  padding: 0.9rem 0.65rem;
  border-bottom: 1px solid rgba(79, 106, 150, 0.26);
}

.fecod-table tbody tr:hover {
  background: rgba(34, 72, 136, 0.16);
}

.badge-fecod {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(125, 193, 255, 0.38);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  background: rgba(16, 42, 78, 0.52);
  font-weight: 700;
}

.fecod-table-actions a {
  color: #89c8ff;
}

/* Event cards */
.home-events .event-card {
  border: 1px solid var(--vibe-border-soft);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
}

.home-events .event-card:hover {
  transform: translateY(-6px);
  border-color: var(--vibe-border-strong);
}

.home-events .event-content {
  width: 100%;
}

/* Discord block */
.discord-hub {
  border-top: 1px solid rgba(104, 151, 235, 0.24);
}

.discord-title {
  text-wrap: balance;
}

.discord-cta {
  border-radius: 999px;
  border-width: 1px;
  padding: 0.78rem 1.8rem;
}

/* News list page */
.news-page .news-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-page .news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(3, 8, 20, 0.55);
  border-color: rgba(104, 190, 255, 0.56);
}

.news-page .news-card-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(95, 188, 255, 0.56);
}

/* Ladder detail polish */
.ladder-team-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer cleanup */
.footer-dark {
  background:
    radial-gradient(820px 260px at 50% -16%, rgba(53, 123, 238, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.98), rgba(3, 8, 16, 0.99));
  border-top: 1px solid rgba(104, 151, 235, 0.24);
}

.footer-dark .sponsors-grid {
  gap: 1.4rem;
}

.footer-dark .sponsor-item {
  border-color: rgba(102, 146, 224, 0.28);
}

.footer-dark .sponsor-item img {
  filter: none;
  opacity: 0.92;
}

@media (max-width: 768px) {
  #news-carousel .carousel-content {
    margin-bottom: 1.1rem;
    border-radius: 13px;
    padding: 0.92rem 0.92rem 1.08rem;
  }

  #social-hub .social-card {
    min-height: 0;
    padding: 0.92rem;
    border-radius: 14px;
  }

  #social-hub .social-embed-shell {
    border-radius: 12px;
    padding: 0.5rem;
  }

  .fecod-table-wrapper {
    padding: 1.1rem 0.82rem;
    border-radius: 14px;
  }
}
