/*
 * LumiCode — Settings Page Styles v1.5.6
 * Loaded only on the settings admin page.
 */

/* ── Two-column grid ─────────────────────────────────────── */
.lc-settings-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 18px; align-items: start;
}
@media (max-width: 900px) { .lc-settings-grid { grid-template-columns: 1fr; } }
.lc-col { display: flex; flex-direction: column; gap: 16px; }
.lc-inline-row { display: flex; align-items: center; gap: 8px; }

/* =============================================================
   PREVIEW BOX — replicate lc-blocks.css for the admin live preview.
   The full frontend stylesheet is NOT loaded in admin, so we mirror
   all required .lc-pw-* rules here.
   ============================================================= */

.lc-pw {
    border-radius: 10px; border: 1px solid #2a2d3a; overflow: hidden;
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.04) inset, 0 16px 48px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
    transition: border-color 0.2s;
}

.lc-pw-titlebar {
    height: 44px; display: flex; align-items: center;
    padding: 0 16px; gap: 8px;
    background: #1c1e28; border-bottom: 1px solid #2a2d3a;
    position: relative; user-select: none; -webkit-user-select: none; flex-shrink: 0;
}

.lc-pw-dots { display: flex; gap: 8px; align-items: center; }
.lc-pw-dot  { display: block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.lc-pw-dot--red    { background: #ff5f57; }
.lc-pw-dot--yellow { background: #febc2e; }
.lc-pw-dot--green  { background: #28c840; }

.lc-pw-filename {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: 0; height: 100%;
    display: flex; align-items: center; gap: 6px;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px; font-weight: 400; color: #6c7086; letter-spacing: 0.01em;
    pointer-events: none; white-space: nowrap; overflow: hidden; max-width: 40%;
}

.lc-pw-dot-indicator {
    display: block; width: 6px; height: 6px;
    border-radius: 50%; background: #febc2e; opacity: 0.8; flex-shrink: 0;
}

.lc-pw-copybtn {
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; background: none;
    border: 1px solid #6c7086 !important; border-radius: 5px;
    color: #6c7086 !important;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px; letter-spacing: 0.04em; cursor: default; line-height: 1;
}

.lc-pw-code { overflow-x: auto; }
.lc-pw-code pre {
    margin: 0; border: none; border-radius: 0; box-shadow: none;
    background: #161820;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 13px; line-height: 1.6; overflow: visible;
}
.lc-pw-code pre:has(code.hljs) { background: transparent !important; }
.lc-pw-code pre code {
    font-family: inherit; font-size: inherit; line-height: inherit;
    display: block; white-space: pre;
    padding: 24px !important; border-radius: 0 !important;
}

.lc-pw-statusbar {
    height: 30px; display: flex; align-items: center;
    padding: 0 16px; gap: 20px;
    background: #1c1e28; border-top: 1px solid #2a2d3a;
    user-select: none; -webkit-user-select: none; flex-shrink: 0;
}
.lc-pw-status-left { display: flex; gap: 20px; }
.lc-pw-status-left span, .lc-pw-status-right {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px; color: #6c7086; letter-spacing: 0.03em; line-height: 1;
}
.lc-pw-status-right { margin-left: auto; color: #cba6f7; font-weight: 500; }

/* Light mode preview box overrides (already in admin-shared but repeat here for specificity) */
#lc-wrap.lc-theme-light .lc-pw { border-color: rgba(0,0,0,0.12) !important; }
#lc-wrap.lc-theme-light .lc-pw-titlebar { background: #f0f1f7 !important; border-bottom-color: rgba(0,0,0,0.09) !important; }
#lc-wrap.lc-theme-light .lc-pw-statusbar { background: #f0f1f7 !important; border-top-color: rgba(0,0,0,0.09) !important; }
#lc-wrap.lc-theme-light .lc-pw-filename  { color: rgba(0,0,0,0.42) !important; }
#lc-wrap.lc-theme-light .lc-pw-status-left span { color: rgba(0,0,0,0.38) !important; }
#lc-wrap.lc-theme-light .lc-pw-status-right     { color: #7c3aed !important; }
#lc-wrap.lc-theme-light .lc-pw-code pre         { background: #f7f7fb !important; }
#lc-wrap.lc-theme-light .lc-pw-copybtn { border-color: rgba(0,0,0,0.28) !important; color: rgba(0,0,0,0.48) !important; }

/* ── Shortcode reference ─────────────────────────────────── */
.lc-ref-pre {
    background: rgba(0,0,0,0.32); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px; padding: 12px 14px;
    font-family: ui-monospace, monospace; font-size: 11.5px;
    color: rgba(148,163,184,0.72); white-space: pre;
    overflow-x: auto; line-height: 1.65; margin: 0 0 14px; box-shadow: none;
}
.lc-ref-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lc-ref-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.lc-ref-table tr:last-child { border-bottom: none; }
.lc-ref-table td { padding: 7px 5px; color: rgba(148,163,184,0.62); vertical-align: top; }
.lc-ref-table td:first-child { width: 90px; font-family: ui-monospace, monospace; font-size: 11px; color: #a78bfa; font-weight: 600; }
.lc-ref-table code { font-family: ui-monospace, monospace; font-size: 10.5px; color: rgba(167,139,250,0.8); }

/* ── Save row ────────────────────────────────────────────── */
.lc-save-row {
    margin-top: 22px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.lc-saved-msg { font-size: 13px; color: #34d399; font-weight: 500; display: none; }
