/* Jazz-infused watch face styles */

body {
  font-family: 'Playfair Display', serif;
  user-select: none;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
}

/* Jazz ambience background */
.jazz-ambience {
  position: relative;
  overflow: hidden;
}

.jazz-ambience::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(255, 140, 0, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Jazz watch face styling */
.jazz-watch-face {
  position: relative;
  transition: all 0.3s ease;
}

.jazz-watch-face::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jazz-watch-face:hover::before {
  opacity: 1;
}

/* Jazz number styling */
.jazz-numbers {
  text-shadow: 0 0 10px currentColor;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Jazz hand animations */
.jazz-hand {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating jazz notes animation */
@keyframes jazzFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.3;
  }
  50% { 
    transform: translateY(-10px) rotate(5deg); 
    opacity: 0.7;
  }
}

@keyframes jazzFloatDelayed {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.2;
  }
  50% { 
    transform: translateY(-8px) rotate(-3deg); 
    opacity: 0.5;
  }
}

.jazz-float {
  animation: jazzFloat 3s ease-in-out infinite;
}

.jazz-float-delayed {
  animation: jazzFloatDelayed 4s ease-in-out infinite 1s;
}

/* Jazz visualization pulse */
@keyframes jazzPulse {
  0%, 100% { 
    opacity: 0.4;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.2);
  }
}

.jazz-pulse {
  animation: jazzPulse 2s ease-in-out infinite;
}

/* Jazz control panel styling */
.jazz-panel {
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(139, 69, 19, 0.2));
}

/* Jazz button styling */
.jazz-button {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.jazz-button:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

/* Smooth hand transitions with jazz easing */
svg line {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Second hand gets jazz-influenced easing */
svg line[stroke="#ff6b6b"] {
  transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Enhanced watch shadow with jazz ambience */
.watch-shadow {
  box-shadow: 
    0 0 0 3px rgba(255, 215, 0, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 3px 12px rgba(255, 215, 0, 0.1);
}

/* Jazz fullscreen mode */
:fullscreen {
  background: linear-gradient(135deg, #92400e, #d97706, #f59e0b);
}

/* Custom scrollbar with jazz styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* Jazz-themed range sliders */
input[type="range"] {
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(245, 158, 11, 0.3));
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  cursor: pointer;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(245, 158, 11, 0.3));
  height: 6px;
  border-radius: 3px;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  cursor: pointer;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Jazz button hover effects */
button {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

button:active {
  transform: scale(0.95);
}

/* Typography enhancements */
.text-silver {
  color: #c0c0c0;
}

.border-silver {
  border-color: #c0c0c0;
}

.stroke-silver {
  stroke: #c0c0c0;
}

/* Jazz club atmosphere glow */
@keyframes jazzGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 5px currentColor);
  }
  50% { 
    filter: drop-shadow(0 0 15px currentColor);
  }
}

.jazz-watch-face[style*="drop-shadow"] {
  animation: jazzGlow 4s ease-in-out infinite;
}

/* Responsive design for smaller screens */
@media (max-width: 640px) {
  .watch-container {
    width: 300px;
    height: 300px;
  }
  
  .jazz-numbers {
    font-size: 1.1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .jazz-watch-face {
    border-width: 6px;
  }
  
  svg line {
    stroke-width: 4px;
  }
  
  .jazz-numbers {
    text-shadow: 0 0 15px currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  svg line,
  .jazz-hand,
  .jazz-button,
  button {
    transition: none;
  }
  
  .jazz-float,
  .jazz-float-delayed,
  .jazz-pulse {
    animation: none;
  }
}

/* Jazz lounge ambient lighting effect */
@keyframes ambientPulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
  animation: ambientPulse 8s ease-in-out infinite;
}