/* Custom Styles for UGC Fabrica Performance Hub */

:root {
  --neon-blue: #00d4ff;
  --neon-purple: #b24bf3;
  --neon-pink: #ff2d95;
  --neon-green: #00ff88;
  --dark-bg: #0a0e1a;
  --dark-card: #141827;
  --dark-border: #1e2537;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-purple) var(--dark-bg);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

*::-webkit-scrollbar-thumb {
  background: var(--neon-purple);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Neon glow effects */
.neon-glow-purple {
  box-shadow: 0 0 20px rgba(178, 75, 243, 0.5);
}

.neon-glow-blue {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.neon-glow-pink {
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.5);
}

.neon-glow-green {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Animated gradients */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background: rgba(0, 255, 136, 0.2);
  color: rgb(0, 255, 136);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.status-planned {
  background: rgba(0, 212, 255, 0.2);
  color: rgb(0, 212, 255);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.status-completed {
  background: rgba(156, 163, 175, 0.2);
  color: rgb(156, 163, 175);
  border: 1px solid rgba(156, 163, 175, 0.4);
}

.status-paused {
  background: rgba(251, 191, 36, 0.2);
  color: rgb(251, 191, 36);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Zone indicators */
.zone-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.zone-green {
  background: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.zone-yellow {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.zone-red {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* Platform icons styling */
.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-right: 4px;
}

.platform-tiktok {
  background: linear-gradient(135deg, #ff0050, #00f2ea);
}

.platform-youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.platform-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

/* Metric cards */
.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue), var(--neon-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover::before {
  opacity: 1;
}

/* Loading animations */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse-slow {
  animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Counter animation */
@keyframes counter-update {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    color: var(--neon-green);
  }
  100% {
    transform: scale(1);
  }
}

.counter-update {
  animation: counter-update 0.3s ease;
}

/* Number glow effect - DISABLED (no dynamic updates) */
/*
@keyframes number-glow {
  0%, 100% {
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6),
                 0 0 16px rgba(0, 255, 136, 0.3);
  }
}

.number-updating {
  animation: number-glow 0.6s ease;
}
*/

/* Hover effects */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Creative card styles */
.creative-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.creative-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.creative-thumbnail {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Live indicator */
@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.live-indicator {
  animation: live-pulse 1.5s ease-in-out infinite;
}

/* Data table styles */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  position: sticky;
  top: 0;
  background: var(--dark-bg);
  z-index: 10;
}

.data-table tr:hover {
  background: rgba(178, 75, 243, 0.05);
}

/* Tooltip styles */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--dark-bg);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  aside {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  main {
    margin-left: 0 !important;
  }
}
