/* NoStress NQ Futures Trading - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Logo optimizations */
img[alt*="NoStress"] {
  filter: drop-shadow(0 4px 8px rgba(255, 165, 0, 0.3));
  transition: all 0.3s ease;
}

img[alt*="NoStress"]:hover {
  filter: drop-shadow(0 6px 12px rgba(255, 165, 0, 0.5));
  transform: scale(1.02);
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 8px rgba(255, 165, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 6px 16px rgba(255, 165, 0, 0.6));
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Trading chart colors */
.trading-profit {
  color: #00ff88;
}

.trading-loss {
  color: #ff4444;
}

.trading-neutral {
  color: #0066ff;
}

/* Video card hover effects */
.video-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 165, 0, 0.2);
}

.video-card:hover .play-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.8));
}

/* YouTube button enhancements */
.youtube-btn {
  position: relative;
  overflow: hidden;
}

.youtube-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.youtube-btn:hover::before {
  left: 100%;
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(135deg, #00ff88, #0066ff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom card hover effects */
.trading-card {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(38, 38, 38, 0.8));
  backdrop-filter: blur(10px);
}

.trading-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

/* YouTube embed responsive */
.youtube-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
  }
  
  .mobile-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00ff88, #0066ff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00cc6a, #0052cc);
}

/* Loading animations */
.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Button animations */
.btn-trading {
  background: linear-gradient(135deg, #00ff88, #0066ff);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-trading:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-trading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-trading:hover::before {
  left: 100%;
}

/* Chart container styling */
.chart-container {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status indicators */
.status-live {
  position: relative;
}

.status-live::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-gradient-to-br {
    background: #000 !important;
  }
  
  .text-gray-300 {
    color: #fff !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}