/* ============================================================
   ON Page SEO — Page Styles
   File: on-page-seo.css
   Builds on top of Rankyfy common.css + keyword-research-extension.css
   Only adds styles not already covered by the base sheets.
   ============================================================ */


/* ============================================================
   HERO — Split audit preview (page + panel)
   ============================================================ */
.ops-audit-preview {
    display: flex;
    height: 340px;
    background: #f6f7ff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Left — fake page being audited */
.ops-page-panel {
    flex: 1;
    background: #fff;
    border-right: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ops-page-topbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--secondary-color);
    flex-shrink: 0;
}

.ops-page-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ops-page-url {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-left: 6px;
    background: rgba(255,255,255,0.07);
    padding: 2px 8px;
    border-radius: 4px;
}

.ops-page-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

/* Skeleton placeholders */
.ops-fake-h1 {
    height: 14px;
    width: 75%;
    background: var(--secondary-color);
    border-radius: 4px;
    opacity: 0.12;
}

.ops-fake-meta {
    height: 9px;
    width: 90%;
    background: #aaa;
    border-radius: 3px;
    opacity: 0.2;
}

.ops-fake-meta.ops-short { width: 60%; }

.ops-fake-h2 {
    height: 11px;
    width: 55%;
    background: var(--secondary-color);
    border-radius: 3px;
    opacity: 0.1;
    margin-top: 4px;
}

.ops-fake-body {
    height: 8px;
    width: 100%;
    background: #ccc;
    border-radius: 3px;
    opacity: 0.18;
}

.ops-fake-body.ops-short { width: 80%; }

.ops-fake-img {
    margin-top: 6px;
    border: 1.5px dashed #dc3545;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220,53,69,0.04);
}

.ops-fake-img span {
    font-size: 10px;
    color: #dc3545;
    font-weight: 600;
}

/* Right — audit results panel */
.ops-panel {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ops-panel-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--secondary-color);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.ops-score-badge {
    margin-left: auto;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
}

.ops-check-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.ops-check-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 11px;
}

.ops-check-item span {
    flex: 1;
    color: #444;
    font-weight: 500;
}

.ops-check-item em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.ops-pass em  { color: #28a745; }
.ops-warn em  { color: #ffc107; }
.ops-fail em  { color: #dc3545; }

.ops-pass { background: rgba(40,167,69,0.03); }
.ops-warn { background: rgba(255,193,7,0.04); }
.ops-fail { background: rgba(220,53,69,0.04); }


/* ============================================================
   SECTION 2 — Issue list (inside kre-issue-card)
   ============================================================ */
.ops-issue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ops-issue {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.ops-issue--critical {
    background: rgba(220,53,69,0.08);
    border-color: rgba(220,53,69,0.2);
}

.ops-issue--warn {
    background: rgba(255,193,7,0.07);
    border-color: rgba(255,193,7,0.2);
}

.ops-issue--pass {
    background: rgba(40,167,69,0.06);
    border-color: rgba(40,167,69,0.15);
}

.ops-issue-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.ops-issue-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.ops-dot--critical { background: #dc3545; }
.ops-dot--warn     { background: #ffc107; }
.ops-dot--pass     { background: #28a745; }

.ops-issue-left strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3px;
}

.ops-issue-left p {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.4;
    opacity: 1;
}

.ops-issue-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    align-self: flex-start;
}

.ops-tag--critical {
    background: rgba(220,53,69,0.2);
    color: #ff6b7a;
}

.ops-tag--warn {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
}

.ops-tag--pass {
    background: rgba(40,167,69,0.15);
    color: #4ddb78;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .ops-audit-preview {
        flex-direction: column;
        height: auto;
    }

    .ops-page-panel {
        border-right: none;
        border-bottom: 1px solid #e8eaed;
        max-height: 180px;
    }

    .ops-panel {
        width: 100%;
        max-height: 220px;
    }
}