/**
 * JitSEO Suite - Gutenberg Sidebar Styles
 */

/* ── SEO / Readability tab switcher ──────────────────────── */
.jit-sidebar-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    border-bottom: 2px solid #e0e0e0;
    background: #f6f7f7;
}

.jit-sidebar-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 9px 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #757575;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.jit-sidebar-tab:hover {
    color: #1e1e1e;
}

.jit-sidebar-tab.active {
    color: #1e1e1e;
    border-bottom-color: #1e1e1e;
    background: #fff;
}

/* ScoreFace SVG sits inline — just needs flex alignment */
.jit-sidebar-tab svg {
    display: block;
    flex-shrink: 0;
}

/* ── Base panel overrides ─────────────────────────────────── */
.jit-sidebar-panel .components-panel__body-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e1e1e;
}

.jit-sidebar-panel .components-panel__body-toggle {
    padding: 10px 16px;
}

.jit-sidebar-panel.components-panel__body {
    border-bottom: 1px solid #e0e0e0;
}

/* ── Keyphrase panel ──────────────────────────────────────── */
.jit-sidebar-panel--kw.components-panel__body {
    padding-bottom: 12px;
}

.jit-sidebar-kw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.jit-sidebar-kw-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #757575;
}

.jit-sidebar-kw-hint {
    font-size: 10px;
    color: #a0a0a0;
    font-style: italic;
}

.jit-sidebar-kw-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e1e1e;
    background: #f6f7f7;
    border-radius: 4px;
    padding: 7px 10px;
    min-height: 32px;
    word-break: break-word;
}

.jit-sidebar-kw-value.jit-sidebar-kw-empty {
    color: #a0a0a0;
    font-weight: 400;
    font-style: italic;
}

/* ── Score rings panel ────────────────────────────────────── */
.jit-sidebar-panel--scores.components-panel__body {
    padding-bottom: 14px;
}

.jit-sidebar-scores-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 4px;
}

.jit-sidebar-score-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 4px 4px;
}

.jit-sidebar-score-label {
    font-size: 12px;
    font-weight: 700;
    color: #1e1e1e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.jit-sidebar-score-sublabel {
    font-size: 11px;
    font-weight: 500;
    color: #757575;
}

.jit-sidebar-score-divider {
    width: 1px;
    height: 72px;
    background: #e0e0e0;
    align-self: center;
    flex-shrink: 0;
}

/* Score color classes */
.jit-score-color--good    { color: #00a32a !important; }
.jit-score-color--ok      { color: #dba617 !important; }
.jit-score-color--bad     { color: #d63638 !important; }
.jit-score-color--none    { color: #a0a0a0 !important; }

.jit-sidebar-hint {
    font-size: 11px;
    color: #a0a0a0;
    text-align: center;
    margin: 8px 0 0;
    font-style: italic;
}

/* ── Issue / passing rows ─────────────────────────────────── */
.jit-sidebar-issue-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    line-height: 1.45;
}

.jit-sidebar-issue-row:last-of-type {
    border-bottom: none;
}

/* StatusDot SVG — aligned by its own inline margin-top */
.jit-sidebar-issue-row svg {
    flex-shrink: 0;
}

.jit-sidebar-issue-text {
    color: #3c434a;
    flex: 1;
}

.jit-sidebar-issue--bad   .jit-sidebar-issue-text { color: #3c434a; }
.jit-sidebar-issue--warning .jit-sidebar-issue-text { color: #3c434a; }
.jit-sidebar-issue--good  .jit-sidebar-issue-text { color: #3c434a; }

/* Show more/less toggle */
.jit-sidebar-show-more {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 5px 0;
    background: none;
    border: none;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #0073aa;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}

.jit-sidebar-show-more:hover {
    color: #005177;
    text-decoration: underline;
}

/* ── SEO Tools panel ──────────────────────────────────────── */
.jit-sidebar-tools-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jit-sidebar-tools-list li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.jit-sidebar-tools-list li:last-child {
    border-bottom: none;
}

.jit-sidebar-tools-list a {
    font-size: 12px;
    color: #0073aa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jit-sidebar-tools-list a:hover {
    color: #005177;
    text-decoration: underline;
}

.jit-sidebar-tools-list a::after {
    content: '↗';
    font-size: 10px;
    opacity: 0.6;
}

/* ── Help panel ───────────────────────────────────────────── */
.jit-sidebar-help {
    font-size: 12px;
    color: #3c434a;
    line-height: 1.6;
}

.jit-sidebar-help-heading {
    font-weight: 600;
    margin: 10px 0 4px;
    font-size: 12px;
    color: #1e1e1e;
}

.jit-sidebar-help-heading:first-child {
    margin-top: 0;
}

.jit-sidebar-help ol,
.jit-sidebar-help ul {
    margin: 0 0 8px 16px;
    padding: 0;
}

.jit-sidebar-help li {
    margin-bottom: 3px;
}

/* ── Links (global sidebar) ───────────────────────────────── */
.edit-post-sidebar a {
    color: #0073aa;
    text-decoration: none;
}

.edit-post-sidebar a:hover {
    text-decoration: underline;
}
