/* Display Styles for LED Banner */
.led-banner-display-container {
  position: relative;
  width: 100%;
  min-height: 200px;
  background-color: #000;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Default rotation angle as CSS variable */
  --rotation-angle: 0deg;
}

/* Rotation wrapper - handles only rotation */
.led-banner-rotation-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: rotate(var(--rotation-angle));
  transform-origin: center center;
}

.led-banner-message-display {
  font-family: 'LED', monospace;
  font-size: 72px;
  white-space: nowrap;
  color: #ff0000;
  text-align: center;
  width: 100%;
}

/* Animation Classes - applied to message display, not rotation wrapper */
.led-banner-scroll-animation {
  animation-name: ledBannerScrollText;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes ledBannerScrollText {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.led-banner-blink-animation {
  animation-name: ledBannerBlinkText;
  animation-timing-function: step-end;
  animation-iteration-count: infinite;
}

@keyframes ledBannerBlinkText {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Controls Overlay */
.led-banner-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
  z-index: 100;
}

.led-banner-controls-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.led-banner-controls-overlay:hover {
  opacity: 1;
}

.led-banner-controls-panel {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.led-banner-timer-display {
  flex: 1;
  margin-right: 20px;
}

.led-banner-time-remaining {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  font-family: 'Digital', monospace;
}

.led-banner-progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.led-banner-progress-indicator {
  height: 100%;
  background-color: #3498db;
  width: 0%;
  transition: width 1s linear;
}

.led-banner-control-buttons {
  display: flex;
  gap: 15px;
}

.led-banner-control-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 18px;
  padding: 0;
  margin: 0 5px;
  z-index: 200;
}

.led-banner-control-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.led-banner-control-btn svg {
  fill: white;
  width: 16px;
  height: 16px;
}

.led-banner-loop-indicator {
  margin-left: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Shortcode specific styles */
.led-banner-shortcode-container {
  margin: 20px 0;
}

.led-banner-shortcode-controls {
  margin-top: 10px;
  text-align: center;
}

/* Fullscreen mode */
.led-banner-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important;
  background-color: #000 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .led-banner-message-display {
    font-size: 48px;
  }
  
  .led-banner-controls-panel {
    flex-direction: column;
    gap: 10px;
  }
  
  .led-banner-timer-display {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .led-banner-control-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .led-banner-loop-indicator {
    margin-left: 0;
    text-align: center;
  }
}

/* Rotation specific styles */
/* Adjust container for 90/270 degree rotations */
.led-banner-display-container[data-rotation-angle="90"],
.led-banner-display-container[data-rotation-angle="270"] {
  min-height: 300px;
}

/* Ensure controls remain properly oriented regardless of message rotation */
.led-banner-controls-panel {
  transform: rotate(0deg) !important;
  position: relative;
  z-index: 100;
}

/* Special handling for fullscreen mode */
.led-banner-fullscreen .led-banner-rotation-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Adjust dimensions for rotated content in fullscreen */
.led-banner-fullscreen[data-rotation-angle="90"] .led-banner-message-display,
.led-banner-fullscreen[data-rotation-angle="270"] .led-banner-message-display {
  max-width: 80vh;
  max-height: 80vw;
}
