/* custom.css - Premium Aesthetics for the Token & Pixel Optimization Hub */

/* Google Fonts Import: Inter and Fira Code */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --indigo-glow: rgba(99, 102, 241, 0.15);
    --pink-glow: rgba(236, 72, 153, 0.15);
    --emerald-glow: rgba(16, 185, 129, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
}

.code-font {
    font-family: 'Fira Code', monospace;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Glow effects */
.glow-indigo {
    box-shadow: 0 0 25px 2px var(--indigo-glow);
}
.glow-pink {
    box-shadow: 0 0 25px 2px var(--pink-glow);
}
.glow-emerald {
    box-shadow: 0 0 25px 2px var(--emerald-glow);
}

/* Animations */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #34d399;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
.pulse-slow {
    animation: pulse-slow 3s infinite ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Glassmorphism containers */
.glass-panel {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Custom premium range slider inputs */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    transition: transform 0.1s;
}

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

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    transition: transform 0.1s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Grid drawing for vision calculator high/low res tiles */
.vision-canvas-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

/* Tooltips */
.tooltip {
    position: relative;
}
.tooltip::before {
    content: attr(data-tip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f172a;
    color: #e2e8f0;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}
