/*
Theme: Prism
Description: Future-forward, high-clarity UI with a subtle prismatic gradient accent.
*/

.gsp-container {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.gsp-card {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 1.125rem;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)) padding-box,
        linear-gradient(120deg, rgba(37, 99, 235, 0.55), rgba(124, 58, 237, 0.55), rgba(20, 184, 166, 0.5)) border-box;
    box-shadow:
        0 18px 46px rgba(15, 23, 42, 0.18),
        0 2px 10px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
    .gsp-card {
        padding: 2.75rem;
    }
}

.gsp-title {
    font-size: 1.75rem;
    line-height: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.02em;
    color: #0f172a;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .gsp-title {
        background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #14b8a6 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .gsp-title::selection {
        background-color: rgba(37, 99, 235, 0.25);
        -webkit-text-fill-color: #0f172a;
        color: #0f172a;
    }
}

.gsp-subtitle {
    font-size: 1rem;
    line-height: 1.6rem;
    color: #334155;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Form Elements */
.gsp-input,
.gsp-select,
.gsp-textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background-color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.06s ease;
}

.gsp-input:focus,
.gsp-select:focus,
.gsp-textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.18),
        0 0 0 1px rgba(124, 58, 237, 0.12);
}

.gsp-input.gsp-invalid,
.gsp-select.gsp-invalid,
.gsp-textarea.gsp-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.gsp-field-error {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #b91c1c;
}

.gsp-form-error {
    font-size: 0.95rem;
    font-weight: 800;
    color: #b91c1c;
}

.gsp-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.gsp-required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.gsp-helper-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Buttons */
.gsp-submit-btn {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 55%, #14b8a6 120%);
    color: #ffffff !important;
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    border-radius: 0.85rem;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.24);
    transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.gsp-submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.22);
}

.gsp-submit-btn:active {
    transform: translateY(0px);
}

.gsp-btn-secondary {
    flex: 1;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #111827;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.12s ease, background-color 0.2s ease;
}

.gsp-btn-secondary:hover {
    background: #0b1220;
    transform: translateY(-1px);
}

.gsp-btn-outline {
    flex: 1;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a !important;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.12s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gsp-btn-outline:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

/* Notices */
.gsp-notice {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.9rem;
    text-align: center;
}

/* Extra Questions Grid */
.gsp-question-group {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Actions Row */
.gemini-share-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gemini-share-actions.hidden {
    display: none;
}

/* Output Area */
.gsp-output {
    margin-top: 2rem;
    padding: 1.25rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.85);
    color: #0f172a;
    line-height: 1.65;
}

.gsp-output.gemini-output h1,
.gsp-output.gemini-output h2,
.gsp-output.gemini-output h3 {
    margin-top: 1.15em;
    margin-bottom: 0.55em;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.gsp-output.gemini-output h1 {
    font-size: 1.5em;
}

.gsp-output.gemini-output h2 {
    font-size: 1.25em;
}

.gsp-output.gemini-output h3 {
    font-size: 1.1em;
}

@media (prefers-reduced-motion: reduce) {
    .gsp-submit-btn,
    .gsp-btn-secondary,
    .gsp-btn-outline,
    .gsp-input,
    .gsp-select,
    .gsp-textarea {
        transition: none !important;
    }
}
