/* Custom Styles & Utilities per Wingfoil Hydrofoil Calculator */

:root {
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --bg-dark: #090e17;
  --card-bg: rgba(15, 23, 42, 0.75);
}

body {
  background-color: var(--bg-dark);
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(2, 132, 199, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-panel-highlight {
  background: rgba(14, 28, 54, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 35px -8px rgba(2, 132, 199, 0.25);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.9);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Custom Radio / Card Buttons */
.level-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.level-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.level-card.active {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.16);
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.25);
}

/* Progress bar glowing */
.meter-fill {
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.view-mode-btn {
  transition: all 0.15s ease-in-out;
}

/* SVG hydrofoil container */
#foilSvg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Tooltip style */
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.info-tooltip .tooltip-text {
  visibility: hidden;
  width: 240px;
  background-color: #0f172a;
  color: #e2e8f0;
  text-align: left;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 50;
  bottom: 125%;
  left: 50%;
  margin-left: -120px;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.75rem;
  line-height: 1.35;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Print optimizations */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .glass-panel, .glass-panel-highlight {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    color: #000000 !important;
  }
  #foilSvg {
    filter: none !important;
  }
}
