/* =============================================================================
   TRAFFIC PLAN — Hero CSS
   Fundal verde, elementul de drum, layout text + stats bar
   ============================================================================= */

/* ─── Hero principal (homepage) ──────────────────────────────────────────── */
.tp-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(74,139,63,0.3) 0%, transparent 55%),
    linear-gradient(135deg, #1E2A3A 0%, #243040 40%, #2d4a2d 70%, #4A8B3F 100%);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Texture subtilă pe fundal verde */
.tp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
  z-index: 0;
}

/* Pattern diagonal subtil */
.tp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,0.025) 28px,
    rgba(255,255,255,0.025) 29px
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── Hero content ───────────────────────────────────────────────────────── */
.tp-hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-16);
}

.tp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .tp-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

/* ─── Hero text stânga ───────────────────────────────────────────────────── */
.tp-hero__text {
  max-width: 560px;
}

.tp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--sp-5);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.tp-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.6);
}

.tp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--tp-white);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.tp-hero__title mark {
  background: none;
  color: var(--tp-yellow-500);
  position: relative;
}

.tp-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--fs-md), 2vw, var(--fs-lg));
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--sp-8);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.tp-hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

@media (min-width: 480px) {
  .tp-hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Buton outline — pe fundal verde hero */
.tp-hero__buttons .btn-outline {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}
.tp-hero__buttons .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

/* ─── Hero vizual dreapta ────────────────────────────────────────────────── */
.tp-hero__visual {
  position: relative;
  display: none;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

@media (min-width: 1024px) {
  .tp-hero__visual {
    display: block;
  }
}

/* Card flotant cu date de trafic */
.tp-hero__data-card {
  background-color: var(--tp-navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
}

.tp-hero__data-card-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-teal-500);
  margin-bottom: var(--sp-5);
}

/* Mini bar chart în card */
.tp-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: var(--sp-4);
}

.tp-chart__bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--tp-teal-500), rgba(46,196,182,0.4));
  position: relative;
  min-height: 8px;
}

.tp-chart__bar--highlight {
  background: linear-gradient(to top, var(--tp-orange-500), rgba(232,135,61,0.5));
}

.tp-chart__labels {
  display: flex;
  gap: 8px;
}

.tp-chart__label {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--tp-gray-500);
  text-align: center;
}

/* Live indicator */
.tp-hero__live {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.tp-hero__live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--tp-teal-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.tp-hero__live-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--tp-teal-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Floating badge pe card */
.tp-hero__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--tp-orange-500);
  color: var(--tp-white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* ─── Stats bar ──────────────────────────────────────────────────────────── */
.tp-hero__stats {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(74,139,63,0.45) 0%,
    rgba(55,105,48,0.65) 100%
  );
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-6) 0;
}

.tp-hero__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  text-align: center;
  align-items: center;
}

@media (min-width: 640px) {
  .tp-hero__stats-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-around;
  }
}

.tp-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
}

.tp-hero__stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--tp-orange-500);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tp-hero__stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ─── Animații ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ─── Hero pagini interioare ─────────────────────────────────────────────── */
.tp-page-hero {
  background-color: var(--tp-green-500);
  padding: var(--sp-16) 0 var(--sp-12);
  position: relative;
  overflow: hidden;
}

.tp-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.tp-page-hero__inner {
  position: relative;
  z-index: 1;
}

.tp-page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
}

.tp-page-hero__breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.tp-page-hero__breadcrumb a:hover { color: var(--tp-white); }

.tp-page-hero__breadcrumb-sep {
  color: rgba(255,255,255,0.3);
}

.tp-page-hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--tp-white);
  margin-bottom: var(--sp-4);
}

.tp-page-hero__subtitle {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.6;
}
