/**
 * Incident Template Generator block styles
 */
.itg-tool { padding: var(--wp--preset--spacing--60, 4rem) 0; }
.itg-tool .container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

.itg-header { text-align: center; margin-bottom: 2rem; }
.itg-header h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 0.75rem; line-height: 1.2; }
.itg-header p { color: var(--wp--preset--color--text-muted, #6b7280); margin: 0 auto; }

.itg-presets {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
    margin-bottom: 1rem; font-size: 0.8125rem;
}
.itg-presets__label {
    color: var(--wp--preset--color--text-muted, #6b7280);
    font-weight: 600;
    margin-right: 0.25rem;
}
.itg-preset {
    padding: 0.4rem 0.875rem; border-radius: 999px;
    border: 1px solid var(--wp--preset--color--border, #d1d5db);
    background: #fff; color: var(--wp--preset--color--text, #111827);
    font: inherit; font-size: 0.8125rem; font-weight: 600;
    cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.itg-preset:hover {
    background: var(--wp--preset--color--primary-50, #eef2ff);
    border-color: var(--wp--preset--color--primary, #4f46e5);
    color: var(--wp--preset--color--primary, #4f46e5);
}

.itg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.itg-form {
    display: flex; flex-direction: column; gap: 1rem;
    background: var(--wp--preset--color--surface, #ffffff);
    border: 1px solid var(--wp--preset--color--border, #e5e7eb);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.itg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.itg-field { display: flex; flex-direction: column; gap: 0.375rem; }
.itg-field label { font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--text, #111827); }
.itg-optional { font-weight: 400; color: var(--wp--preset--color--text-muted, #6b7280); font-size: 0.8125rem; }
.itg-field input, .itg-field select, .itg-field textarea {
    padding: 0.625rem 0.875rem; border: 1px solid var(--wp--preset--color--border, #d1d5db);
    border-radius: 8px; font: inherit; font-size: 0.9375rem;
    background: #fff; color: var(--wp--preset--color--text, #111827);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.itg-field select {
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 12px;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
}
.itg-field textarea { resize: vertical; min-height: 6rem; font-family: inherit; }
.itg-field input:focus, .itg-field select:focus, .itg-field textarea:focus {
    outline: none; border-color: var(--wp--preset--color--primary, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.itg-preview {
    background: var(--wp--preset--color--surface, #ffffff);
    border: 1px solid var(--wp--preset--color--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex; flex-direction: column;
}
.itg-preview__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wp--preset--color--border, #e5e7eb);
    gap: 0.75rem; flex-wrap: wrap;
}
.itg-preview__head h2 { margin: 0; font-size: 1rem; }
.itg-preview__actions { display: flex; gap: 0.5rem; }
.itg-copy {
    padding: 0.5rem 0.875rem; border-radius: 8px;
    border: 1px solid var(--wp--preset--color--border, #d1d5db);
    background: #fff; color: var(--wp--preset--color--text, #111827);
    font: inherit; font-size: 0.8125rem; font-weight: 600;
    cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.itg-copy:hover {
    background: var(--wp--preset--color--background-muted, #f9fafb);
    border-color: var(--wp--preset--color--primary, #4f46e5);
    color: var(--wp--preset--color--primary, #4f46e5);
}
.itg-copy.is-copied { background: #ecfdf5; border-color: #10b981; color: #047857; }
.itg-preview__body {
    margin: 0; padding: 1.25rem 1.5rem;
    background: var(--wp--preset--color--background-muted, #f9fafb);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875rem; line-height: 1.6;
    color: var(--wp--preset--color--text, #111827);
    white-space: pre-wrap; word-break: break-word;
    border-radius: 0 0 12px 12px;
    flex: 1;
}

/* Upsell */
.itg-upsell {
    position: relative; margin-top: 2rem; display: grid;
    grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #4f46e5) 0%, var(--wp--preset--color--primary-hover, #4338ca) 100%);
    border-radius: 14px;
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.45), 0 4px 12px -4px rgba(79, 70, 229, 0.25);
    color: #fff; overflow: hidden;
}
.itg-upsell::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.15), transparent 50%); pointer-events: none; }
.itg-upsell > * { position: relative; }
.itg-upsell__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, 0.18); color: #fff; flex-shrink: 0; }
.itg-upsell__eyebrow { display: inline-block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); margin-bottom: 0.35rem; }
.itg-upsell__body h3 { margin: 0 0 0.4rem; font-size: 1.375rem; line-height: 1.25; color: #fff; font-weight: 700; }
.itg-upsell__body h3 em { font-style: italic; color: #fef08a; text-decoration: underline; text-decoration-color: rgba(254, 240, 138, 0.5); text-underline-offset: 3px; }
.itg-upsell__body p { margin: 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.92); line-height: 1.5; max-width: 62ch; }
.itg-upsell__cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.375rem; border-radius: 10px; background: #fff;
    color: var(--wp--preset--color--primary, #4f46e5); font-size: 0.9375rem; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}
.itg-upsell__cta:hover { color: var(--wp--preset--color--primary, #4f46e5); transform: translateY(-1px); box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.2); }

/* Reference */
.itg-reference {
    margin-top: 2.5rem; padding: 1.75rem;
    background: var(--wp--preset--color--surface, #ffffff);
    border: 1px solid var(--wp--preset--color--border, #e5e7eb);
    border-radius: 12px;
}
.itg-reference h2 { margin: 0 0 0.75rem; font-size: 1.125rem; }
.itg-reference ul { margin: 0; padding-left: 1.25rem; color: var(--wp--preset--color--text, #111827); font-size: 0.9375rem; line-height: 1.7; }
.itg-reference li { margin-bottom: 0.375rem; }

@media (max-width: 900px) {
    .itg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .itg-row { grid-template-columns: 1fr; }
    .itg-upsell { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; }
    .itg-upsell__icon { margin: 0 auto; }
    .itg-upsell__cta { justify-content: center; }
    .itg-reference { padding: 1.25rem; }
}
