/* =========================================================================
   Page Designer — Footer Block Styles
   CSS Namespace: pd-blk-ftr-*
   ========================================================================= */

/* Setting group labels + dividers (dedicated to footer block) */
.pd-blk-ftr-group-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: inherit;
    margin: 6px 0 10px 0;
    padding: 0;
}
.pd-blk-ftr-group-label:first-child {
    margin-top: 0;
}
.pd-blk-ftr-group-divider {
    border: 0;
    border-top: 2px solid color-mix(in srgb, currentColor 15%, transparent);
    margin: 18px 0 14px 0;
    padding: 0;
    background: transparent;
    height: 0;
}

.pd-blk-ftr {
    background-color: color-mix(in srgb, currentColor 6%, transparent); /* v3.7.21 — subtle footer band, no admin token */
    color: inherit;
    padding: 60px 0 0;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* The footer IS the bottom of the page — there is never a gap under it.
   Global block spacing gives every [data-pd-block] a bottom margin, which left
   a strip of page background below the footer band on every generated site.
   Written as element+class (0,1,1) so it outranks that attribute rule (0,1,0)
   whatever the source order, and without !important. Top spacing is untouched —
   the footer still breathes away from the block above it. */
footer.pd-blk-ftr {
    margin-bottom: 0;
}

.pd-blk-ftr-inner {
    max-width: var(--pd-container-width, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.pd-blk-ftr-col {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.pd-blk-ftr-heading {
    /* Follow the COLUMN's alignment, explicitly.
       The column centres its contents, and the heading used to pick that up by
       inheritance — but an inherited value loses to any rule that matches the
       element directly, and the site-wide theme sets text-align on a bare
       h1–h6 list. So a theme aligned left dragged every footer column heading
       left while its own text stayed centred. Stating "inherit" here matches
       the element (0,2,0, out-specifying the theme's 0,0,1) and still defers to
       whatever alignment the column is set to, so the footer's own alignment
       control keeps working. */
    text-align: inherit;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}

.pd-blk-ftr-text {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 12px;
    color: inherit;
}

.pd-blk-ftr-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pd-blk-ftr-link {
    color: var(--pd-link-color, currentColor);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.pd-blk-ftr-link:hover,
.pd-blk-ftr-link:focus {
    color: var(--pd-link-color, currentColor);
    text-decoration: none;
}
.pd-blk-ftr-social-link:hover,
.pd-blk-ftr-social-link:focus {
    text-decoration: none;
}

.pd-blk-ftr-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.pd-blk-ftr-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 8%, transparent); /* v3.7.21 — neutral social chip, no admin token */
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.pd-blk-ftr-social-link:hover {
    background: var(--pd-link-color, #89b4fa); /* v3.7.23 — accent follows Global Links */
    color: inherit;
}

.pd-blk-ftr-bottom {
    max-width: var(--pd-container-width, 100%);
    margin: 40px auto 0;
    padding: 20px 24px;
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    text-align: center;
}

.pd-blk-ftr-copyright {
    font-size: 13px;
    color: inherit;
    margin: 0;
}

@media (max-width: 768px) {
    .pd-blk-ftr-inner {
        flex-direction: column;
        gap: 32px;
    }
    .pd-blk-ftr-col {
        min-width: 100%;
    }
    .pd-blk-ftr {
        padding: 40px 0 0;
    }
    .pd-blk-ftr-bottom {
        margin-top: 32px;
    }
}

@media (max-width: 576px) {
    .pd-blk-ftr-inner {
        padding: 0 16px;
        gap: 24px;
    }
    .pd-blk-ftr {
        padding: 32px 0 0;
    }
}

/* ──────────────────────────────────────────────────────────────────────
 * v2.6.15: Dedicated panel chrome — migrated off the shared pd-dsp-*
 * namespace. Duplicated from editor.css:1074-1520 on 2026-04-09 and
 * renamed to pd-blk-ftr-pnl-* so the Footer settings panel can evolve
 * its chrome independently of the Design panel.
 *
 * Intentional fork — do NOT try to keep these in sync with pd-dsp-*.
 * ────────────────────────────────────────────────────────────────────── */
.pd-blk-ftr-pnl {
    position: fixed;
    top: 50px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 50px);
    background: var(--at-color-background, #1e1e2e);
    border-left: 1px solid var(--at-color-border, #313244);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    transition: right 0.25s ease;
    overflow: hidden;
}
.pd-blk-ftr-pnl-visible {
    right: 0;
}
.pd-blk-ftr-pnl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--at-color-border, #313244);
    background: var(--at-color-card, #181825);
    flex-shrink: 0;
}
.pd-blk-ftr-pnl-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--at-color-card-foreground);
}
.pd-blk-ftr-pnl-title .fa {
    color: var(--at-color-primary);
    margin-right: 6px;
}
.pd-blk-ftr-pnl-close {
    background: none;
    border: none;
    color: var(--at-color-card-foreground);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
}
.pd-blk-ftr-pnl-close:hover {
    color: var(--at-color-destructive-foreground);
    background: var(--at-color-destructive);
}
.pd-blk-ftr-pnl-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.pd-blk-ftr-pnl-body::-webkit-scrollbar { width: 5px; }
.pd-blk-ftr-pnl-body::-webkit-scrollbar-track { background: var(--at-color-background, #1e1e2e); }
.pd-blk-ftr-pnl-body::-webkit-scrollbar-thumb { background: var(--at-color-muted, #45475a); border-radius: 3px; }
.pd-blk-ftr-pnl-comp-label,
.pd-blk-ftr-pnl-comp-type {
    display: none !important;
}
.pd-blk-ftr-pnl-section {
    border-bottom: 1px solid var(--at-color-border, #313244);
}
.pd-blk-ftr-pnl-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--at-color-card-foreground);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.pd-blk-ftr-pnl-section-header:hover {
    background: var(--at-color-muted);
}
.pd-blk-ftr-pnl-section-icon {
    color: var(--at-color-primary);
    width: 16px;
    text-align: center;
    font-size: 12px;
}
.pd-blk-ftr-pnl-section-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--at-color-card-foreground);
    transition: transform 0.25s ease;
}
.pd-blk-ftr-pnl-open > .pd-blk-ftr-pnl-section-header .pd-blk-ftr-pnl-section-arrow {
    transform: rotate(180deg);
}
.pd-blk-ftr-pnl-section-body {
    padding: 4px 16px 16px;
}
.pd-blk-ftr-pnl-field {
    margin-bottom: 12px;
}
.pd-blk-ftr-pnl-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--at-color-card-foreground);
    margin-bottom: 4px;
}
.pd-blk-ftr-pnl-input {
    width: 100%;
    background: var(--at-color-secondary, #313244);
    border: 1px solid var(--at-color-border, #45475a);
    color: var(--at-color-card-foreground);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.pd-blk-ftr-pnl-input:focus {
    border-color: var(--at-color-primary, #89b4fa);
}
.pd-blk-ftr-pnl-select {
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
}
.pd-blk-ftr-pnl-select option {
    background: var(--at-color-secondary, #313244);
    color: var(--at-color-card-foreground);
}
.pd-blk-ftr-pnl-color {
    width: 100%;
    height: 36px;
    border: 1px solid var(--at-color-border, #45475a);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: var(--at-color-secondary, #313244);
}
.pd-blk-ftr-pnl-color:hover {
    border-color: var(--at-color-primary, #89b4fa);
}
.pd-blk-ftr-pnl-slider-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.pd-blk-ftr-pnl-slider-field:last-child {
    margin-bottom: 0;
}
.pd-blk-ftr-pnl-slider {
    flex: 1;
    height: 6px;
    cursor: pointer;
    accent-color: var(--at-color-primary, #89b4fa);
    background: var(--at-color-secondary, #313244);
    border-radius: 3px;
    -webkit-appearance: auto;
    appearance: auto;
}
.pd-blk-ftr-pnl-slider-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--at-color-card-foreground);
    min-width: 24px;
    text-align: right;
}
.pd-blk-ftr-pnl-slider-unit {
    font-size: 10px;
    color: var(--at-color-card-foreground);
}

/* ── Pages column in auto / menu mode ──────────────────────────────
 * When the column is bound to the site's pages rather than inline links, the
 * publish-time renderer replaces its children with a real <ul> menu tree. The
 * footer only ever styled bare <a> links, so that list arrived wearing its
 * browser default bullets. Strip the list chrome and let the links look the
 * same however the column is sourced. */
.pd-blk-ftr-links ul,
.pd-blk-ftr-links ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pd-blk-ftr-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pd-blk-ftr-links li::marker { content: ""; }
