/* LIGHT BAR ESSENTIALS */
.lightbar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 945px;
  margin: 0 auto;
  margin-bottom: 0.18em;
  padding: 0.36em;
  font-size: clamp(6px, 1.16vw, 11px);
  box-sizing: border-box;
}

.light {
  width: 11.9em;            /* păstrăm aceeași lățime */
  height: 2em;              /* mai mic pe înălțime */
  padding: 0.2em 0.5em;     /* padding redus */
  margin: 0 0.18em;
  border-top: 0.18em solid #111;
  border-right: 0.09em solid #333;
  border-bottom: 0.09em solid #333;
  border-left: 0.18em solid #111;
  border-radius: 0.4em;
  flex-shrink: 0;
  position: relative;
  background-color: #222;
  line-height: 1;
  box-sizing: border-box;
  
  display: flex;                /* aliniem cu flex */
  justify-content: space-between; /* bulbi distribuiți uniform */
  align-items: center;            /* centrare pe verticală */

  animation: module-pattern 0.4s infinite; /* pattern mai rapid (0.4s în loc de 0.8s) */
}

/* Delay pentru sincronizarea pattern-ului */
#light-1, #light-2, #light-5, #light-6 { animation-delay: 0s; }
#light-3, #light-4 { animation-delay: 0.2s; } /* jumătate din durata ciclului */

/* Keyframes pattern alternat */
@keyframes module-pattern {
  0%, 49%   { background-color: #ff9f56; } /* aprinse */
  50%, 100% { background-color: #222; }    /* stinse */
}

/* Păstrăm inner-light și beculețele așa cum sunt */
.inner-light { 
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 0.55em;
  border: 0.09em solid transparent;
  background-color: transparent;
  opacity: 0;
  z-index: 1;
}

.bulb {
  width: 1em;
  height: 1em;
  box-shadow: 0 0 0.27em #222;
  border-radius: 50%;
  flex-shrink: 0;   /* bulbi nu se micșorează */
  background: linear-gradient(155deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.14) 25%, rgba(255,255,255,0.18) 49%, rgba(0,0,0,0) 78%, rgba(0,0,0,0.8) 100%);
}

/* Responsivitate */
@media (max-width: 450px) {
  .lightbar { transform: scale(0.7); transform-origin: top; }
}
@media (min-width: 491px) {
  .lightbar { width: 100%; max-width: 945px; }
}
