/* file: /css/storybot-creator-teaser-style.css */

/**
 * StoryBot Creator Teaser — playful lavender "Deine eigene Geschichte" panel
 * ------------------------------------------------------------
 * Two-column panel: emotional copy + sleeping bunny on the left,
 * light picker card (hero avatars, topic + moral dropdowns, gold CTA)
 * on the right. Consumes the --gng-* tokens from the theme
 * (css/storytheme-tokens.css), incl. the bedtime-magic light accents.
 * ------------------------------------------------------------
 */

.storybot-teaser-panel {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    background: linear-gradient(135deg, var(--gng-lavender-soft, #ece6fa) 0%, #f6f2ff 60%, #fdfbff 100%);
    border-radius: var(--gng-radius-lg, 18px);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--gng-shadow, 0 6px 20px rgba(5, 6, 15, 0.45));
}

/* --- Left column: copy + bunny --- */
.storybot-teaser-title {
    font-family: var(--gng-font-title, "Quicksand", sans-serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gng-ink, #2b2545);
    margin: 0 0 12px;
}

.storybot-teaser-text {
    color: var(--gng-ink-muted, #6a6488);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 18px;
}

.storybot-teaser-bunny {
    display: block;
    max-width: 220px;
    width: 70%;
    height: auto;
    margin: 0 auto;
}

/* --- Right column: picker card --- */
.storybot-teaser-card {
    background: var(--gng-cloud-card, #ffffff);
    border-radius: var(--gng-radius-lg, 18px);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 8px 24px rgba(43, 37, 69, 0.10);
}

.storybot-teaser-form fieldset {
    border: none;
    margin: 0 0 18px;
    padding: 0;
}

.storybot-teaser-label {
    display: block;
    font-family: var(--gng-font-title, "Quicksand", sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gng-ink, #2b2545);
    margin: 0 0 10px;
}

/* Hero avatar radio pills */
.storybot-teaser-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.storybot-teaser-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}

/* Visually hide the native radio, keep it accessible */
.storybot-teaser-hero input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.storybot-teaser-hero-circle {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    border: 3px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.storybot-teaser-hero-circle--rose     { background: #fbe7ee; color: #c95d85; }
.storybot-teaser-hero-circle--sky      { background: #e3edfb; color: #4d76b8; }
.storybot-teaser-hero-circle--gold     { background: #fbf1dc; color: #c9952f; }
.storybot-teaser-hero-circle--lavender { background: var(--gng-lavender-soft, #ece6fa); color: var(--gng-lavender-deep, #6f5bb5); }

.storybot-teaser-hero:hover .storybot-teaser-hero-circle {
    transform: translateY(-2px);
}

/* Selected state: lavender ring + soft glow */
.storybot-teaser-hero input[type="radio"]:checked + .storybot-teaser-hero-circle {
    border-color: var(--gng-lavender-deep, #6f5bb5);
    box-shadow: 0 0 0 4px rgba(111, 91, 181, 0.15);
}

.storybot-teaser-hero input[type="radio"]:focus-visible + .storybot-teaser-hero-circle {
    outline: 2px solid var(--gng-lavender-deep, #6f5bb5);
    outline-offset: 2px;
}

.storybot-teaser-hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gng-ink, #2b2545);
}

/* Topic + moral dropdowns */
.storybot-teaser-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.storybot-teaser-select-group select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid rgba(111, 91, 181, 0.25);
    border-radius: var(--gng-radius, 14px);
    background-color: #fdfcff;
    color: var(--gng-ink, #2b2545);
    font-family: var(--gng-font-body, "Open Sans", sans-serif);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.storybot-teaser-select-group select:hover,
.storybot-teaser-select-group select:focus {
    border-color: var(--gng-lavender-deep, #6f5bb5);
    outline: none;
}

/* Gold CTA — matches the site-wide .gng-btn--primary look */
.storybot-teaser-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--gng-radius-pill, 999px);
    background: var(--gng-accent, #f4c97a);
    color: #2a2410;
    font-family: var(--gng-font-title, "Quicksand", sans-serif);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(201, 149, 47, 0.35);
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.storybot-teaser-submit:hover {
    background: var(--gng-accent-hover, #e8b85f);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 149, 47, 0.45);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .storybot-teaser-panel {
        grid-template-columns: 1fr;
    }

    .storybot-teaser-copy {
        text-align: center;
    }

    .storybot-teaser-bunny {
        max-width: 170px;
    }

    .storybot-teaser-selects {
        grid-template-columns: 1fr;
    }
}
