/* Custom styles can go here */

body {
  background-color: #030712; /* bg-gray-950 */
  color: #e5e7eb; /* default text color */
}

/* Gradient backgrounds for hero section */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

.bg-gradient-conic {
  background: conic-gradient(var(--tw-gradient-stops));
}

/* Hero section specific styles */
#hero-section {
  background: linear-gradient(135deg, #000000 0%, #1a0a0a 50%, #000000 100%);
}

/* Fiber optic effect simulation */
.fiber-optic-bg {
  background:
    radial-gradient(ellipse at center, rgba(255, 165, 0, 0.3) 0%, rgba(255, 69, 0, 0.2) 30%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 140, 0, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 69, 0, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 40%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
  animation: fiber-glow 8s ease-in-out infinite alternate;
}

@keyframes fiber-glow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Video styles */
.hero-video {
  filter: brightness(0.7) contrast(1.2);
}

.platform-video {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.platform-video:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Video controls styling */
video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-timeline {
  filter: invert(1);
}

.glass-card {
  background: rgba(17, 24, 39, 0.6); /* bg-gray-900 with 60% opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-soft {
  background: rgba(31, 41, 55, 0.2); /* bg-gray-800/20 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.2); /* bg-blue-500/20 */
  color: #eff6ff; /* text-blue-100 */
  font-weight: 600;
}

/* --- Animation Keyframes --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Animation Utility Classes --- */
.fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-in-out forwards;
}

/* --- Staggered Animation --- */
.stagger-children > * {
  animation: fadeInUp 0.5s ease-in-out forwards;
  opacity: 0;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* --- Hover animation --- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.bg-gray-900{
  background-color: unset !important;
}

/* Price Timeline Styles */
#price-timeline .relative {
  position: relative;
}
#timeline-container{
  height: 6rem;
}
#gradient-line {
  transition: all 0.5s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#direction-arrow {
  transition: all 0.3s ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

#direction-arrow:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Price point animations */
#price-timeline .w-3.h-3 {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

#price-timeline .w-3.h-3:hover {
  transform: scale(1.2);
}

/* Gradient line pulse animation */
@keyframes pulse-gradient {
  0% {
    opacity: 0.8;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
  100% {
    opacity: 0.8;
    transform: scaleY(1);
  }
}

/* Price timeline container styling */
#price-timeline {
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
}

/* ====================================================================== */
/* ==================  NEW STYLES FOR TRADING PAGES  ==================== */
/* ====================================================================== */

/* Alerts */
.alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-warning {
  background: rgba(255, 192, 0, 0.08);
  border-color: rgba(255, 192, 0, 0.25);
}
.alert-info {
  background: rgba(86, 156, 214, 0.08);
  border-color: rgba(86, 156, 214, 0.25);
}

/* Page title */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Card + inputs */
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
}
.input:focus {
  border-color: rgba(138, 180, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.15);
}

.muted {
  color: rgba(229, 231, 235, 0.6);
  font-size: 0.85rem;
}

/* Upload drop-zone */
.drop {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px;
  min-height: 260px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}
.drop--hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.drop img.preview {
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  display: block;
}

/* Controls grid */
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .controls-grid {
    grid-template-columns: 1fr;
  }
}

/* Field wrapper */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Slider with “R” caps */
.range-wrap {
  position: relative;
  padding: 6px 38px;
}
.range-wrap .cap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.range-wrap .cap-left { left: 2px; }
.range-wrap .cap-right { right: 2px; }
.range-wrap .badge {
  position: absolute;
  top: -10px;
  right: 38px;
  font-size: 0.85rem;
  opacity: 0.9;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #8ab4f8;
  border: 2px solid #101114;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #8ab4f8;
  border: 2px solid #101114;
}

/* Analyze button */
.btn-main {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: #3a3f54;
  color: #fff;
  border: 0;
}
.btn-main[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Result display */
#analysis-result,
.analysis-result {
  margin-top: 14px;
}
.result-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 6px 0 0;
}
.result-notes {
  margin-top: 8px;
  opacity: 0.9;
}
.result-error {
  color: #ff6b6b;
}
