/* UK Investment Platform Advisor - Stylesheet */

:root {
  --primary-green: #064e3b;
  --emerald-green: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #10b981;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f8fafc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Range input custom styling with Emerald / Green theme */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: #e2e8f0;
  border-radius: 9999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #059669;
  border: 2px solid #ffffff;
  cursor: pointer;
  margin-top: -5.5px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #047857;
}

/* Hide default marker on details/summary */
details summary::-webkit-details-marker {
  display: none;
}
details summary {
  list-style: none;
}

/* Asset Checkbox Pill styling */
.asset-pill {
  transition: all 0.15s ease-in-out;
}
.asset-pill.checked {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}
.asset-pill.unchecked {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}
.asset-pill:hover {
  border-color: #10b981;
}

/* Platform Card Hover Effect */
.platform-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.platform-card:hover {
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

/* Winner Card Border */
.winner-card {
  border: 1.5px solid #10b981 !important;
}

/* Metrics Vertical Dividers */
.metric-divider {
  border-right: 1px solid #f1f5f9;
}
@media (max-width: 639px) {
  .metric-divider:nth-child(2) {
    border-right: none;
  }
}
.metric-divider:last-child {
  border-right: none;
}

/* Segmented Control */
.segmented-btn {
  transition: all 0.15s ease;
}
.segmented-btn.active {
  background-color: #064e3b;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.segmented-btn:not(.active) {
  color: #64748b;
}
.segmented-btn:not(.active):hover {
  color: #0f172a;
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }
  .no-print {
    display: none !important;
  }
  .platform-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 12px;
  }
}
