/* TutorLook — Custom styles on top of Tailwind */

:root {
    --brand: #DC2626;
    --brand-light: #EF4444;
    --brand-dark: #B91C1C;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Brand gradient backgrounds */
.bg-brand-gradient {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #F87171 100%);
}
.bg-brand-subtle {
    background: linear-gradient(180deg, rgba(220,38,38,0.05) 0%, #ffffff 60%);
}

/* Onboarding wizard */
.wizard-step { display: none; animation: fadeSlide 0.3s ease; }
.wizard-step.active { display: block; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Subject chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(13,148,136,0.1);
    color: #DC2626;
    transition: all 0.15s;
}
.chip:hover { background: rgba(13,148,136,0.2); }
.chip .remove {
    cursor: pointer;
    margin-left: 0.25rem;
    font-size: 1rem;
    line-height: 1;
}

/* Star ratings */
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: #d1d5db; cursor: pointer; transition: color 0.15s; }
.stars .star.filled { color: #f59e0b; }
.stars .star:hover,
.stars .star:hover ~ .star { color: #fbbf24; }

/* Card hover effect */
.tutor-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.tutor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-flex;
}

/* Slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #DC2626;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Quick-pick buttons */
.quick-pick {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
}
.quick-pick:hover,
.quick-pick.selected {
    border-color: #DC2626;
    background: rgba(13,148,136,0.05);
    color: #DC2626;
}

/* Pulse animation for location button */
@keyframes pulse-brand {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(220,38,38,0); }
}
.pulse-teal, .pulse-brand { animation: pulse-brand 2s infinite; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
