/* file: /css/storybot-newsletter-style.css */

/**
 * StoryBot Newsletter — dark "Bleib auf dem Laufenden" signup band
 * ------------------------------------------------------------
 * Rounded night-sky card with moon icon, email field and gold
 * "Anmelden" button. Consumes the --gng-* tokens from the
 * storefront-storytheme theme (css/storytheme-tokens.css).
 * ------------------------------------------------------------
 */

.storybot-newsletter-band {
    background: var(--gng-card, #161a35);
    border: 1px solid var(--gng-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--gng-radius-lg, 18px);
    box-shadow: var(--gng-shadow, 0 6px 20px rgba(5, 6, 15, 0.45));
    padding: clamp(28px, 4vw, 44px);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
}

.storybot-newsletter-copy {
    display: flex;
    align-items: center;
    gap: 18px;
}

.storybot-newsletter-moon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gng-accent-soft, rgba(244, 201, 122, 0.14));
    color: var(--gng-accent, #f4c97a);
    font-size: 24px;
}

.storybot-newsletter-title {
    font-family: var(--gng-font-title, "Quicksand", sans-serif);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    color: var(--gng-text, #e8eaf2);
    margin: 0 0 4px;
}

.storybot-newsletter-text {
    color: var(--gng-text-muted, #9aa0c0);
    margin: 0;
    line-height: 1.55;
    font-size: 0.95rem;
}

.storybot-newsletter-form {
    display: flex;
    gap: 10px;
    margin: 0;
}

.storybot-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    border: 1.5px solid var(--gng-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--gng-radius-pill, 999px);
    background: var(--gng-bg-deep, #0a0c1c);
    color: var(--gng-text, #e8eaf2);
    font-family: var(--gng-font-body, "Open Sans", sans-serif);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.storybot-newsletter-form input[type="email"]::placeholder {
    color: var(--gng-text-dim, #7b8198);
}

.storybot-newsletter-form input[type="email"]:focus {
    border-color: var(--gng-accent, #f4c97a);
    outline: none;
}

/* Honeypot field — visually removed, still in the DOM for bots */
.storybot-newsletter-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.storybot-newsletter-submit {
    height: 50px;
    padding: 0 26px;
    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: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.storybot-newsletter-submit:hover {
    background: var(--gng-accent-hover, #e8b85f);
    transform: translateY(-1px);
}

.storybot-newsletter-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* Feedback message spans the full band width below the form */
.storybot-newsletter-message {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    font-weight: 600;
    min-height: 1.4em;
}

.storybot-newsletter-message.is-success {
    color: var(--gng-success, #8fb89a);
}

.storybot-newsletter-message.is-error {
    color: #e08a8a;
}

@media (max-width: 800px) {
    .storybot-newsletter-band {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .storybot-newsletter-copy {
        flex-direction: column;
        text-align: center;
    }

    .storybot-newsletter-form {
        flex-direction: column;
    }
}
