/* Custom Styles for Bitcoin DCA Calculator */

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Magnetic Button Visuals (Animations handled by GSAP) */
.magnetic-btn {
    will-change: transform;
    overflow: hidden;
    position: relative;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50%;
    pointer-events: none;
}

.magnetic-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.magnetic-btn:active {
    transform: scale(0.97) !important;
}

#chart-container canvas,
html, body, #app-container {
    touch-action: pan-y !important;
}

/* Custom Color Picker input */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

/* Toggle Switch Overrides via peer-checked mapped in Tailwind setup */

/* Halving line markers */
.halving-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(212, 175, 55, 0.3); /* Gold/Amber */
    border-left: 1px dashed rgba(212, 175, 55, 0.5);
    pointer-events: none;
    z-index: 5;
}

.halving-line::after {
    content: attr(data-label);
    position: absolute;
    top: 8px;
    left: 6px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: rgba(212, 175, 55, 0.8);
    background: rgba(5, 5, 5, 0.8);
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Chart Container & Tooltip Utilities */

#crosshair-tooltip {
    /* Kept invisible by default via JS */
    transition: opacity 0.15s ease, transform 0.1s ease-out;
}

/* Input range styling for future expansions */
input[type="range"] {
    accent-color: #D4AF37;
}

/* Fluid Typography and Scaling System */
.fluid-header-gap {
    gap: clamp(6px, calc(6px + 2 * ((100vw - 375px) / 649)), 8px);
}
.fluid-logo {
    --logo-h: clamp(44px, calc(44px + 4 * ((100vw - 375px) / 649)), 48px);
    height: var(--logo-h);
    /* Natural layout alignment - no negative subpixel margin offsets */
}
.fluid-tagline {
    font-size: clamp(9.8px, calc(9.8px + 0.7 * ((100vw - 375px) / 649)), 10.5px);
}
