/*
 * static_pages.css
 * Scoped styles for public static pages + admin static pages screen.
 * Keep selectors narrow to avoid global impact.
 */

/* Public page handler */
.page-handler .static-page-content {
    line-height: 1.6;
}

.page-handler .static-page-content h1,
.page-handler .static-page-content h2,
.page-handler .static-page-content h3,
.page-handler .static-page-content h4 {
    margin: 18px 0 10px;
}

.page-handler .static-page-content p {
    margin: 0 0 3px;
}

.page-handler .static-page-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.page-handler .static-page-list li {
    padding: 10px 0;
    border-top: 1px solid currentColor;
    opacity: 0.95;
}

.page-handler .static-page-list li:first-child {
    border-top: none;
}

.page-handler .static-page-list a {
    text-decoration: none;
}

.page-handler .static-page-meta {
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.75;
}

.page-handler .static-page-nextprev {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid currentColor;
    display: table;
    width: 100%;
    opacity: 0.95;
}

.page-handler .static-page-nextprev .prev,
.page-handler .static-page-nextprev .next {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.page-handler .static-page-nextprev .next {
    text-align: right;
}

/* Admin static pages screen (scoped under management content) */
.management-content .breadcrumb-preview {
    margin: 10px 0 15px;
    padding: 10px 12px;
    background: var(--mgmt-bg-light, #f8f9fa);
    border: 1px solid var(--mgmt-border, #dee2e6);
    border-radius: var(--mgmt-radius, 6px);
}

.management-content .status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--mgmt-border, #dee2e6);
    background: var(--mgmt-bg-white, #fff);
}

.management-content .static-quick-actions form {
    display: inline;
}

.management-content .static-quick-actions .quick-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

.management-content .static-quick-actions .quick-btn:hover,
.management-content .static-quick-actions .quick-btn:focus {
    color: var(--primary-dark, #333);
    outline: none;
}

.management-content .static-quick-actions .quick-btn:focus-visible {
    outline: none;
    box-shadow: var(--btn-focus-ring, 0 0 0 3px rgba(51, 51, 51, 0.16));
}

/* Admin: Summernote overrides (only on the static pages editor screen) */
.management-content .note-editor { margin-bottom: 20px; background: #fff; }
.management-content .note-editor.note-frame {
    border: 1px solid var(--mgmt-border, #dee2e6);
    border-radius: var(--mgmt-radius, 6px);
}
.management-content .note-editing-area { background: #fff; }

/* Admin: page type options */
.management-content .form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--mgmt-bg-light, #f8f9fa);
    border: 1px solid var(--mgmt-border, #dee2e6);
    border-radius: var(--mgmt-radius, 6px);
}
.management-content .form-options > label {
    width: 100%;
    font-weight: 600;
    margin-bottom: 5px;
}
.management-content .form-option {
    flex: 1;
    min-width: 180px;
    padding: 12px;
    background: var(--mgmt-bg-white, #fff);
    border: 1px solid var(--mgmt-border, #dee2e6);
    border-radius: var(--mgmt-radius, 6px);
}
.management-content .form-option input[type="radio"] { margin-right: 8px; }
.management-content .form-option label { font-weight: 600; }
.management-content .form-option small {
    display: block;
    margin-top: 5px;
    color: var(--mgmt-text-muted, #6c757d);
}

.management-content .static-editor-inline-note {
    display: block;
    margin-top: 8px;
    color: #5b3908;
    font-size: 13px;
    line-height: 1.6;
}

.management-content .static-editor-inline-note strong {
    color: #3c2200;
}

.management-content .static-editor-help,
.management-content .static-editor-example {
    border-radius: 8px;
}

.management-content .static-editor-help {
    background: linear-gradient(180deg, #fff8e8 0%, #f7ebcf 100%);
    border-color: #d8b16a;
    color: #5b3908;
}

.management-content .static-editor-help strong {
    display: block;
    margin-bottom: 8px;
    color: #3c2200;
}

.management-content .static-editor-help div {
    margin-top: 6px;
}

.management-content .static-editor-help code {
    background: rgba(60, 34, 0, 0.08);
    color: #7b1f1f;
    padding: 1px 5px;
    border-radius: 4px;
}

.management-content .static-editor-example {
    background: linear-gradient(180deg, #20242b 0%, #15181d 100%);
    border-color: #3f4652;
    color: #f2f5f8;
}

.management-content .static-editor-example strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.management-content .static-editor-example pre {
    background: #101318;
    color: #f4d9a6;
    border: 1px solid #3f4652;
    border-radius: 6px;
    padding: 12px;
}
