/* ===================================
   RETRO VISITOR COUNTER
   =================================== */

.visitor-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(50, 50, 50, 0.6) 100%);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 15px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.counter-label {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.counter-display {
  display: flex;
  gap: 4px;
  background: #000;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid #222;
}

.counter-digit {
  display: inline-block;
  width: 28px;
  height: 40px;
  background: linear-gradient(180deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 1.8em;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 
    0 2px 8px rgba(255, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 
      0 2px 8px rgba(255, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  }
  to {
    box-shadow: 
      0 2px 12px rgba(255, 0, 0, 0.9),
      0 0 20px rgba(255, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  }
}

/* Alternative Green LED Style */
.visitor-counter.led-green .counter-digit {
  background: linear-gradient(180deg, #00ff00 0%, #00cc00 100%);
  box-shadow: 
    0 2px 8px rgba(0, 255, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.visitor-counter.led-green .counter-digit {
  animation: glow-green 2s ease-in-out infinite alternate;
}

@keyframes glow-green {
  from {
    box-shadow: 
      0 2px 8px rgba(0, 255, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  }
  to {
    box-shadow: 
      0 2px 12px rgba(0, 255, 0, 0.9),
      0 0 20px rgba(0, 255, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  }
}

/* Alternative Blue LCD Style */
.visitor-counter.lcd-blue .counter-digit {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
  color: #00d9ff;
  box-shadow: 
    0 2px 8px rgba(0, 217, 255, 0.4),
    inset 0 1px 0 rgba(0, 217, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  text-shadow: 
    0 0 10px rgba(0, 217, 255, 0.9),
    0 0 20px rgba(0, 217, 255, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .visitor-counter {
    padding: 12px 15px;
  }
  
  .counter-digit {
    width: 24px;
    height: 35px;
    font-size: 1.5em;
    line-height: 35px;
  }
  
  .counter-label {
    font-size: 0.8em;
  }
}
