/* Accel DNA Social Engine — Prompt Builder Edition */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa;
    color: #1a2332;
    line-height: 1.5;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}
.brand h1 {
    font-size: 1.85rem;
    margin: 0 0 .25rem;
    color: #0a1628;
}
.brand h1 span {
    color: #2563eb;
    font-weight: 500;
}
.tagline {
    color: #64748b;
    margin: 0 0 1.5rem;
}
.tagline a {
    color: #2563eb;
    text-decoration: none;
}

/* Step banner */
.step-banner {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    min-width: 180px;
    padding: .75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: .85rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 500;
}
.step.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}
.step.done {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

/* Form */
.brief-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
fieldset {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 1.5rem;
    padding: 1.5rem 0 0;
}
fieldset:first-of-type { border-top: none; padding-top: 0; }
legend {
    font-weight: 600;
    color: #0a1628;
    padding: 0 .5rem 0 0;
    font-size: 1.05rem;
}
label {
    display: block;
    margin: 1rem 0;
    font-size: .92rem;
    color: #334155;
    font-weight: 500;
}
input[type="text"], input[type="number"], select, textarea {
    display: block;
    width: 100%;
    padding: .65rem .8rem;
    margin-top: .4rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
    background: white;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .5rem;
    margin-top: .5rem;
}
.checkbox-group label {
    margin: 0;
    padding: .5rem .75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-weight: 400;
}
.checkbox-group input { margin-right: .4rem; }
.hint {
    color: #64748b;
    font-size: .85rem;
    margin: .5rem 0;
    font-style: italic;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: white;
    border: none;
    padding: .85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-download {
    display: inline-block;
    background: #f1f5f9;
    color: #0a1628;
    padding: .65rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    margin: .25rem .5rem .25rem 0;
    border: 1px solid #cbd5e1;
    font-size: .9rem;
    font-weight: 500;
}
.btn-download:hover { background: #e2e8f0; }

/* Copy button */
.btn-copy {
    background: #10b981;
    color: white;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: .75rem;
}
.btn-copy:hover { background: #059669; }
.btn-copy.copied { background: #047857; }

/* Prompt box */
.prompt-box-wrap {
    margin-top: 1rem;
}
#promptBox {
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: .82rem;
    line-height: 1.5;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.instructions {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    padding: 1rem 1rem 1rem 2.5rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}
.instructions li {
    margin: .35rem 0;
    font-size: .92rem;
}
.instructions a { color: #2563eb; font-weight: 600; }

/* Results */
.result-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin: 1.5rem 0;
}
.result-card h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: #0a1628;
    border-bottom: 2px solid #2563eb;
    padding-bottom: .4rem;
    display: inline-block;
}
.download-row { margin-top: .5rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
th, td {
    padding: .55rem .7rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}
tbody tr:hover { background: #f8fafc; }

/* Posts (collapsible) */
.post-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: .75rem 0;
    background: #fafbfc;
}
.post-card summary {
    padding: .85rem 1rem;
    cursor: pointer;
    font-size: .92rem;
    user-select: none;
}
.post-card summary:hover { background: #f1f5f9; }
.post-card[open] summary { border-bottom: 1px solid #e5e7eb; background: #f8fafc; }
.post-body { padding: 1rem 1.25rem; }
.post-body p { margin: .5rem 0; font-size: .92rem; }
.post-body pre {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: .9rem;
    line-height: 1.6;
}
.canva-brief {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    padding: .75rem 1rem;
    margin-top: .75rem;
    border-radius: 0 4px 4px 0;
}
.canva-brief ul { margin: .25rem 0; padding-left: 1.25rem; }
.canva-brief li { margin: .25rem 0; font-size: .88rem; }

footer {
    text-align: center;
    color: #94a3b8;
    font-size: .85rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
}
footer code {
    background: #e5e7eb;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: .85em;
}
