/**
 * WellReps - Custom CSS
 * Complementa Tailwind CSS
 */

/* Safe area for bottom nav (iOS PWA) */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Smooth transitions for Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Score gauge animation */
@keyframes gauge-fill {
    from { stroke-dashoffset: 100; }
}

.gauge-animated {
    animation: gauge-fill 1s ease-out;
}

/* Streak fire animation */
@keyframes fire-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.fire-pulse {
    animation: fire-pulse 1.5s ease-in-out infinite;
}

/* Badge earned animation */
@keyframes badge-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.badge-pop {
    animation: badge-pop 0.5s ease-out;
}

/* Slider for qualitative diagnosis */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #334155;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Number input without spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}
