/* ============================================
   SUPPORT STATUS WIDGET - FROSTED SERVICES
   Glassmorphic, icy-themed design
   ============================================ */

#support-status-widget {
  --frost-primary: #00d4ff;
  --frost-dark: #0a0e27;
  --frost-light: #e8f4f8;
  --frost-accent: #00a3cc;
  --status-online: #00ff88;
  --status-offline: #ff4757;
  --glow-intensity: 0.5;
}

#support-status-widget * {
  box-sizing: border-box;
}

#support-status-widget {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.support-widget-container {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 163, 204, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle animated background */
.support-widget-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 163, 204, 0.03) 0%, transparent 50%);
  pointer-events: none;
  animation: breath 8s ease-in-out infinite;
}

@keyframes breath {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.support-widget-container:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(0, 212, 255, 0.2);
}

/* Content wrapper - position relative for z-index */
.support-widget-content {
  position: relative;
  z-index: 1;
}

.support-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.support-widget-title {
  font-size: 16px;
  font-weight: 600;
  color: #0a0e27;
  margin: 0;
  letter-spacing: 0.5px;
}

.support-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.support-status-pill.online {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 200, 100, 0.1) 100%);
  color: #00aa55;
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.support-status-pill.online:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.support-status-pill.offline {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, rgba(255, 100, 100, 0.1) 100%);
  color: #cc3333;
  border: 1px solid rgba(255, 71, 87, 0.3);
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
}

.support-status-pill.offline:hover {
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Status indicator dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.support-status-pill.online .status-dot {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.support-status-pill.offline .status-dot {
  background: #ff4757;
  box-shadow: 0 0 8px #ff4757;
  animation: pulse-offline 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes pulse-offline {
  0%, 100% { opacity: 1; ; }
  50% { opacity: 0.5; }
}

.support-status-message {
  font-size: 13px;
  color: #0a0e27;
  margin-bottom: 16px;
  line-height: 1.5;
}

.support-hours-section {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.support-hours-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #0a0e27;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.support-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.support-hours-list li {
  font-size: 13px;
  color: #0a0e27;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-hours-list li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.hours-day {
  font-weight: 500;
}

.hours-time {
  color: #0a0e27;
  opacity: 0.8;
  font-size: 12px;
}

.support-timezone {
  font-size: 12px;
  color: #0a0e27;
  opacity: 0.7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.support-widget-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #0a0e27;
  opacity: 0.7;
}

.status-updated {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sync-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sync-spinner.done {
  animation: none;
  border-color: rgba(0, 212, 255, 0.5);
  border-top-color: #00ff88;
}

/* ============ SNOW SPARKLE EFFECT ============ */
.snow-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-fall 3s linear forwards;
}

@keyframes sparkle-fall {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(20px) translateX(var(--tx, 0px)) scale(0);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .support-widget-container {
    padding: 20px;
    max-width: 100%;
  }

  .support-widget-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-widget-title {
    font-size: 15px;
  }

  .support-status-message {
    font-size: 12px;
  }

  .support-hours-section {
    padding: 14px;
  }
}

/* ============ DARK MODE SUPPORT ============ */
@media (prefers-color-scheme: dark) {
  #support-status-widget {
    --frost-dark: #f0f5f8;
  }

  .support-widget-container {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 163, 204, 0.04) 100%);
    border-color: rgba(0, 212, 255, 0.15);
  }

  .support-widget-title,
  .support-status-message,
  .hours-day,
  .hours-time,
  .support-timezone,
  .support-widget-footer,
  .support-hours-label {
    color: #f0f5f8;
  }

  .support-hours-section {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.1);
  }
}
