/* Styles for the Retro Vibes hat-pin / roach-clip designer.
   Reuses the --retro-* palette defined in index.html. */

#designer {
    background: linear-gradient(180deg, var(--retro-ink-soft) 0%, var(--retro-ink) 100%);
}

#designer p {
    color: var(--retro-text-muted);
}

.designer-card {
    background-color: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(242, 140, 56, 0.22);
    color: var(--retro-text);
}

.designer-stage-wrap {
    background: radial-gradient(circle at 50% 25%, rgba(255, 200, 87, 0.12) 0%, rgba(27, 22, 15, 0.4) 70%);
    border-radius: 1rem;
}

.designer-stage {
    width: 100%;
    height: auto;
    display: block;
}

/* Gentle sway for the rendered feathers */
@media (prefers-reduced-motion: no-preference) {
    .designer-feather {
        animation: designer-sway 5s ease-in-out infinite;
    }
    .designer-feather:nth-child(2n) { animation-duration: 6.2s; animation-delay: -1.4s; }
    .designer-feather:nth-child(3n) { animation-duration: 7.1s; animation-delay: -2.6s; }
}

@keyframes designer-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2.25deg); }
}

.designer-step-title {
    font-family: 'Righteous', cursive;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--retro-yellow);
}

/* Large, tappable swatch buttons (>= 44px targets) */
.designer-swatch {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(240, 215, 200, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--retro-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.designer-swatch:hover {
    border-color: var(--retro-orange);
    transform: translateY(-1px);
}

.designer-swatch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--retro-yellow);
}

.designer-swatch[aria-pressed="true"] {
    border-color: var(--retro-orange);
    background-color: rgba(242, 140, 56, 0.22);
    box-shadow: 0 0 12px rgba(242, 140, 56, 0.45);
}

.designer-swatch .swatch-dot {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    flex: none;
}

.designer-slider-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--retro-text-muted);
}

.designer-slider {
    width: 100%;
    accent-color: var(--retro-orange);
    min-height: 28px;
}

.designer-item-row {
    border: 1px solid rgba(240, 215, 200, 0.18);
    border-radius: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.18);
}

.designer-remove-btn {
    min-height: 44px;
    min-width: 44px;
    border-radius: 0.6rem;
    border: 1px solid rgba(240, 215, 200, 0.25);
    color: var(--retro-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.designer-remove-btn:hover {
    color: #f87171;
    border-color: #f87171;
}

.designer-remove-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--retro-yellow);
}

@media (max-width: 767px) {
    #designer {
        background: transparent;
    }
}
