/**
 * News Ticker Pro for Elementor - Core Stylesheet
 * Optimized for GPU Hardware Acceleration & Smooth 60fps Scrolling
 */

.newsticker-pro-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  font-family: inherit;
  transition: all 0.3s ease;
  z-index: 10;
}

.newsticker-pro-container * {
  box-sizing: border-box;
}

/* Badge Styling */
.newsticker-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
}

.newsticker-pro-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  display: inline-block;
  animation: newsticker-pulse 1.5s infinite ease-in-out;
}

@keyframes newsticker-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #ffffff; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Track Wrapper */
.newsticker-pro-track-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  height: 100%;
  padding: 0 12px;
}

.newsticker-pro-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

/* Items */
.newsticker-pro-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1.4;
}

.newsticker-pro-item-category {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.12);
}

.newsticker-pro-item-title {
  font-weight: 500;
}

.newsticker-pro-item-title a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.newsticker-pro-item-delta {
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.newsticker-pro-item-meta {
  font-size: 11px;
  opacity: 0.8;
}

.newsticker-pro-separator {
  opacity: 0.5;
  margin-left: 8px;
  font-size: 12px;
}

/* Navigation Buttons */
.newsticker-pro-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  flex-shrink: 0;
  z-index: 2;
}

.newsticker-pro-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.newsticker-pro-nav-btn:hover {
  filter: brightness(1.2);
}

.newsticker-pro-nav-btn:active {
  transform: scale(0.92);
}

/* Animations for Vertical Slide */
.mode-vertical-slide .newsticker-pro-track {
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.mode-vertical-slide .newsticker-pro-item {
  height: 100%;
  width: 100%;
  opacity: 1;
}

/* Animations for Typewriter */
.mode-typewriter .newsticker-pro-item-title {
  border-right: 2px solid currentColor;
  animation: newsticker-blink 0.8s infinite;
}

@keyframes newsticker-blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: currentColor; }
}

/* Preset Specific Overrides */
.preset-breaking-broadcast {
  background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 100%);
  color: #f8fafc;
  border: 1px solid #334155;
}

.preset-tech-minimal {
  background: #18181b;
  color: #e4e4e7;
  border: 1px solid #27272a;
}

.preset-finance-stock {
  background: linear-gradient(90deg, #022c22 0%, #064e3b 100%);
  color: #ecfdf5;
  border: 1px solid #065f46;
}

.preset-classic-magazine {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.preset-cyber-neon {
  background: linear-gradient(90deg, #180828 0%, #09090b 100%);
  color: #fdf4ff;
  border: 1px solid #a21caf;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}

.preset-top-bar-slim {
  background: #0f172a;
  color: #cbd5e1;
  border-bottom: 1px solid #1e293b;
}
