/**
 * Component-level styles.
 * Extracted from index.html inline styles.
 */

/* Header / Hero gradient background (legacy, used for CTA until replaced) */
.gradient-bg {
  background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-bg) 100%);
}

.hero-nav {
  z-index: 100;
  background: linear-gradient(to bottom, black 75%, transparent 100%);
  position: fixed;
}

/* Hero section - full image displayed via img for responsive uncropped display */

.hero-bg-wrapper {
  position: relative;
}
.hero-content-zone {
  position: absolute;
}

.hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Overlay on hero image at sm breakpoint so hero-value-prop text stays readable */
.hero-overlay {
  display: none;
}

.hero-content-zone .cta {
 display: none;
}
#contactModal {
  z-index: 9000;
}

@media (max-width: 767px) {
  .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 5) 0%, rgba(0, 0, 0, 5) 50%, transparent 100%);
    pointer-events: none;
  }
  .hero-bg-wrapper {
    position: absolute;
  }
  .hero-content-zone {
    position: relative;
  }
  .hero-content-zone .cta {
    display: block;
    width: 220px;
   }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.20) 40%, transparent 100%);
    pointer-events: none;
  }
}



/* Team card hover effect 
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
  */

/* Score ring SVG rotation */
.score-ring {
  transform: rotate(-90deg);
}

#team-name {
 line-height: 1.25 !important;
 overflow: visible;
}

/* Metric bar fill - transition for width animation */
.metric-bar {
  transition: width 0.8s ease-out;
}

/* Metric bar fill - red gradient (reskin: left-to-right dark red to transparent) */
.metric-bar-fill {
  background: linear-gradient(90deg, var(--color-accent) 100%, transparent 100%);
  height: 1.1rem !important;
}

@media (max-width: 639px) {
  .metric-bar-fill {
    height: 0.55rem !important;
  }
}

/* Team card background - blue gradient */
.team-card-bg {
  /*background-image: url('../media/gradients/BLUE_GRADIENT.svg');*/
  background: linear-gradient(to top, #002d72 0%, #000000 40%);
  background-size: cover;
  background-position: center;
}

/* Score dial image sizing */
.score-dial-img {
  width: 10rem;
  height: 6rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .score-dial-img {
    width: 12rem;
    height: 7rem;
  }
}

@media (min-width: 1024px) {
  .score-dial-img {
    width: 15rem;
    height: 8rem;
  }
}

/* Stack metric labels and scores to avoid collisions/overflow */
.metric-box .flex.items-center.justify-between.mb-2 {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

/* Expanded analysis section - collapsible */
.expanded-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.expanded-details.show {
  max-height: 1000px;
  opacity: 1;
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Toggle button chevron rotation */
.toggle-btn.active svg {
  transform: rotate(90deg);
}

.toggle-btn svg {
  transition: transform 0.3s ease;
}

/* Lerma logo sizing */
.lerma-logo {
  width: auto;
  height: 3vh;
}

@media (min-width: 767px) {
  .lerma-logo {
    width: 35vw;
    height: 3vh;
  }
}

@media (min-width: 1024px) {
  .lerma-logo {
    width: 35vw;
    height: 3vh;
  }
}

/* Filter bar - transparent with white borders */
.filter-bar {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--color-text);
}

.filter-bar select,
.filter-bar input {
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-search);
}

.filter-bar select option {
  background: var(--color-bg);
  color: var(--color-text);
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--color-text);
  outline: none;
}

.filter-bar input::placeholder {
  color: var(--color-muted);
}

/* Badge icon - BANNER base with optional overlay */
.badge-icon-wrapper {
  position: relative;
}

.badge-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1.25rem;
  object-fit: contain;
}

/* ── Metrics Explainer Flowchart ── */

.metrics-explainer {
  background: radial-gradient(ellipse at center, #002d72 0%, #000000 70%);
}

.metric-explain-card {
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.metric-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 4px 0 0 4px;
}

.flowchart-connector {
  width: 2px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.3);
}

/* ── CTA Button Outlines ── */

.cta-btn-outline {
  min-width: auto;
  width: 100%;
}

@media (min-width: 640px) {
  .cta-btn-outline {
    min-width: 14rem;
    width: auto;
  }
}
