/* ============================================================
   Brown County Events PDF Builder — UI Styles
   ============================================================ */

#bc-pdf-builder {
    max-width: 700px;
    font-family: inherit;
}

.bc-pdf-intro {
    margin-bottom: 20px;
    color: #5a4a3a;
    font-size: 0.97em;
}

.bc-pdf-form {
    background: #faf5ef;
    border: 1px solid #e0d5c8;
    border-radius: 8px;
    padding: 24px;
}

/* ── Row layout for date pickers ── */
.bc-pdf-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ── Field ── */
.bc-pdf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.bc-pdf-field--full {
    width: 100%;
    flex: unset;
    margin-bottom: 20px;
}

.bc-pdf-field label,
.bc-pdf-field--full > label {
    font-weight: 700;
    font-size: 0.92em;
    color: #3a2a1a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bc-pdf-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #8b7a68;
    font-size: 0.9em;
}

.bc-pdf-field input[type="date"] {
    padding: 9px 12px;
    border: 1px solid #c9b99a;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    color: #2a1a0a;
    cursor: pointer;
}

.bc-pdf-field input[type="date"]:focus {
    outline: 2px solid #8b4513;
    outline-offset: 1px;
}

/* ── Checkbox grid ── */
.bc-pdf-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 4px;
}

.bc-pdf-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.93em;
    color: #3a2a1a;
    cursor: pointer;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #d8cfc4;
    border-radius: 20px;
    transition: all 0.15s;
    user-select: none;
    text-transform: none;
    letter-spacing: 0;
}

.bc-pdf-check-label:hover {
    border-color: #8b4513;
    background: #fdf5ed;
}

.bc-pdf-check-label input[type="checkbox"] {
    accent-color: #8b4513;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.bc-pdf-check-label:has(input:checked) {
    background: #8b4513;
    border-color: #8b4513;
    color: #fff;
}

/* ── Actions ── */
.bc-pdf-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.bc-pdf-btn {
    padding: 11px 24px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.97em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.bc-pdf-btn--primary {
    background: #8b4513;
    color: #fff;
}

.bc-pdf-btn--primary:hover {
    background: #6b3410;
}

.bc-pdf-btn--secondary {
    background: #f0e4d4;
    color: #5c2d0a;
    border: 1px solid #c9b99a;
}

.bc-pdf-btn--secondary:hover {
    background: #e0d0bc;
}

.bc-pdf-copied-msg {
    font-size: 0.9em;
    color: #2d7a3a;
    font-weight: 600;
}

/* ── Error ── */
.bc-pdf-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fdf0f0;
    border: 1px solid #e0b0b0;
    border-radius: 4px;
    color: #8b1a1a;
    font-size: 0.92em;
}

/* ── Mobile ── */
@media (max-width: 500px) {
    .bc-pdf-form { padding: 16px; }
    .bc-pdf-row { flex-direction: column; gap: 14px; }
    .bc-pdf-btn { width: 100%; text-align: center; }
    .bc-pdf-actions { flex-direction: column; align-items: stretch; }
}

/* ── Featured-only checkbox — stands out from regular tags ── */
.bc-pdf-check-featured {
    border-color: #8b4513;
    background: #fdf5ed;
    font-weight: 600;
}

.bc-pdf-check-featured:has(input:checked) {
    background: #5c2d0a;
    border-color: #5c2d0a;
    color: #fff;
}

/* ── Featured checkbox label — stacked layout ── */
.bc-featured-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-featured-title {
    font-weight: 700;
    font-size: 0.93em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bc-check-note {
    display: block;
    font-size: 0.82em;
    font-weight: 400;
    opacity: 0.8;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
}

/* Override the pill shape for featured so it has enough height */
.bc-pdf-check-featured {
    align-items: flex-start;
    border-radius: 8px;
    padding: 8px 12px;
}
