/*
 * ============================================================================
 * Circuit Scout - Shared Design Tokens
 * Version 1.0.0
 * Designed & Developed by Tim Samoff
 *
 * A DIY guitar pedal circuit database and search tool
 *
 * Shared spacing, type, radius, and transition scale for both surfaces
 *
 * @license MIT
 * @see https://samoff.com/circuit-scout
 * ============================================================================
 */

:root {
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-round: 8px;
    --radius-circle: 50%;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 3rem;

    /* Typography */
    --font-body: 'Space Grotesk', sans-serif;
    --font-size-xs: 0.688rem;
    --font-size-sm: 0.75rem;
    --font-size-md: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 3.5rem;

    /* Transitions */
    --transition-fast: 0.1s;
    --transition-base: 0.2s;
    --transition-slow: 0.25s;
    --transition-theme: 0.3s;

    /* Status colors that don't vary by theme */
    --status-danger: #ef4444;
    --status-danger-rgb: 239, 68, 68;
    --status-star: #fbbf24;
}

/* Shared search-clear-button positioning/behavior (markup duplicated
   between index.html and admin.html — see comments there). Each surface
   sets its own color/size specifics locally. */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-clear-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    z-index: 2;
}

.search-clear-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.search-clear-btn.hidden {
    display: none;
}

/* Accent colors (cyan/teal/blue) aren't here — they differ between
   style.css's light and dark mode. admin.css keeps its own dark-mode copy. */
