/* ============================================================
   Birth Bets — custom CSS
   (Tailwind handles layout; this file owns component styles)
   ============================================================ */

/* ── Animations ─────────────────────────────────────────────── */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.fade-in        { animation: fadeIn    0.35s ease both; }
.baby-bounce    { animation: bounceSlow 2.4s ease-in-out infinite; }


/* ── Card ───────────────────────────────────────────────────── */

.card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #F0E6EA;
    padding: 1.75rem;
    box-shadow: 0 2px 16px 0 rgba(244, 164, 176, 0.08);
}


/* ── Section titles ─────────────────────────────────────────── */

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F0E6EA;
}

.gradient-classic { color: #c05870; }
.gradient-fun     { color: #7c5cbf; }


/* ── Field helpers ──────────────────────────────────────────── */

.field-group {
    margin-bottom: 1.5rem;
}
.field-group:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #3D3D3D;
}

.field-input {
    width: 100%;
    border: 2px solid #F0E6EA;
    border-radius: 0.875rem;
    padding: 0.65rem 1rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #3D3D3D;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.field-input:focus {
    border-color: #F4A4B0;
    box-shadow: 0 0 0 3px rgba(244, 164, 176, 0.18);
}


/* ── Buttons ─────────────────────────────────────────────────── */

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #F4A4B0 0%, #c980d8 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}
.btn-primary:hover  { filter: brightness(1.07); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #3D3D3D;
    border: 2px solid #F0E6EA;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.btn-secondary:hover  { border-color: #F4A4B0; background: #FDE8ED; }
.btn-secondary:active { transform: scale(0.97); }


/* ── Radio cards (sex, mood) ─────────────────────────────────── */

.radio-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border: 2px solid #F0E6EA;
    border-radius: 0.875rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3D3D3D;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
    user-select: none;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* :has() is widely supported in modern browsers */
.radio-card:has(input[type="radio"]:checked) {
    border-color: #F4A4B0;
    background: #FDE8ED;
    box-shadow: 0 0 0 3px rgba(244, 164, 176, 0.2);
}

.radio-card:hover {
    border-color: #F4A4B0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 164, 176, 0.2);
}

.radio-card--wide {
    min-width: 7rem;
    flex-direction: column;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}


/* ── Resemblance range slider ────────────────────────────────── */

.fun-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 9999px;
    background: linear-gradient(to right, #A4C4F4, #F4A4B0);
    outline: none;
    cursor: pointer;
}

.fun-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #c980d8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.1s;
}

.fun-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(201, 128, 216, 0.35);
}

.fun-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #c980d8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: grab;
}


/* ── Continuous color picker (Pickr) ─────────────────────────── */

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.color-picker-hex {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #3D3D3D;
    text-transform: uppercase;
}

/* Pickr's swatch button */
.color-picker-row .pcr-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: 3px solid #fff;
    outline: 2px solid #F0E6EA;
    transition: transform 0.15s, box-shadow 0.15s;
}

/* Force the inner colour layers to be round too (fixes square-in-circle) */
.color-picker-row .pcr-button::before,
.color-picker-row .pcr-button::after {
    border-radius: 50%;
}

.color-picker-row .pcr-button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}


/* ── Hair curl visual preview ────────────────────────────────── */

.curl-preview {
    background: #F8EEFF;
    border: 2px solid #EBD9F5;
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
    overflow: hidden;
}


