/* =========================================================
 * SEO Boss - Audit page styles
 * File: public/assets/css/audit.css
 * =======================================================*/

/* Global page tweaks for audit pages */
body.sb-body {
    background-color: #f5f7fb;
}

/* ---------------------------------------
 * Top score card
 * -------------------------------------*/
.audit-score-circle {
    width: 125px;
    height: 125px;
    flex-shrink: 0;
}

.audit-score-circle svg {
    display: block;
}

/* KPI chips below score etc. */
.audit-kpi-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    background-color: #f3f4f6;
    color: #111827;
}

/* ---------------------------------------
 * Issue rows (PASSED / ISSUE / INFO)
 * -------------------------------------*/
.audit-issue-row {
    border-radius: .5rem;
    padding: .75rem .75rem;
    transition: box-shadow .15s ease, background-color .15s ease, transform .1s ease;
}

.audit-issue-row:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

/* Tighten spacing inside issue rows */
.audit-issue-row .small {
    font-size: .77rem;
}

/* status & impact badges */
.audit-issue-row .badge-pill {
    border-radius: 999px;
    font-weight: 500;
}

/* Improve contrast for subtle bg utilities */
.bg-danger-subtle {
    background-color: #fee2e2 !important;
}

.bg-warning-subtle {
    background-color: #fef3c7 !important;
}

.bg-info-subtle {
    background-color: #e0f2fe !important;
}

.bg-success-subtle {
    background-color: #dcfce7 !important;
}

.bg-secondary-subtle {
    background-color: #e5e7eb !important;
}

.badge.bg-danger-subtle {
    border: 1px solid #ef4444;
}

.badge.bg-warning-subtle {
    border: 1px solid #eab308;
}

.badge.bg-info-subtle {
    border: 1px solid #0ea5e9;
}

.badge.bg-success-subtle {
    border: 1px solid #22c55e;
}

.badge.bg-secondary-subtle {
    border: 1px solid #6b7280;
}

/* Divider between items inside sections */
.card .border-light {
    opacity: .8;
}

/* ---------------------------------------
 * Section cards
 * -------------------------------------*/
.card .card-header .small.fw-bold {
    letter-spacing: .01em;
    text-transform: uppercase;
}

.card .card-header .badge {
    border-radius: 999px;
    padding: .15rem .5rem;
    font-size: .7rem;
}

/* ---------------------------------------
 * OG image card
 * -------------------------------------*/
.audit-og-card img {
    object-fit: cover;
}

.audit-og-fallback {
    opacity: .8;
}

/* ---------------------------------------
 * Search preview blocks
 *  (Google / Bing / Yandex)
 * -------------------------------------*/
.audit-search-preview-google-wrapper {
    background: #ffffff;
}

.audit-search-preview-google-img-wrapper {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    width: 26px;
    margin-right: 12px;
    flex-shrink: 0;
}

.audit-search-preview-google-img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.audit-search-preview-google-host {
    color: #202124;
    font-size: 14px;
}

.audit-search-preview-google-url {
    color: #4d5156;
    font-size: 12px;
}

.audit-search-preview-google-title {
    color: #1a0dab;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 3px;
    padding-top: 5px;
}

.audit-search-preview-google-description {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #474747;
}

/* Bing */
.audit-search-preview-bing-wrapper {
    background: #ffffff;
}

.audit-search-preview-bing-img-wrapper {
    background-color: #f1f3f4;
    border: 1px solid #ddd;
    overflow: hidden;
    width: 26px;
    height: 26px;
    text-align: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.audit-search-preview-bing-img {
    border-radius: 4px;
    width: 16px;
    height: 16px;
}

.audit-search-preview-bing-host {
    line-height: 18px;
    font-size: 14px;
    color: #444;
}

.audit-search-preview-bing-url {
    line-height: 20px;
    font-size: 13px;
    color: #444;
}

.audit-search-preview-bing-title {
    color: #294e9b;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    padding-top: 4px;
    margin: 0;
}

.audit-search-preview-bing-description {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #71777d;
}

/* Yandex */
.audit-search-preview-yandex-wrapper {
    background: #fbfbfb;
}

.audit-search-preview-yandex-img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-top: 15px;
}

.audit-search-preview-yandex-result-wrapper {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

.audit-search-preview-yandex-url {
    font-size: 14px;
    font-weight: bold;
    line-height: 17px;
    color: #0b6301;
}

.audit-search-preview-yandex-title {
    color: #000080;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    margin: 0;
}

.audit-search-preview-yandex-description {
    margin-top: 2px;
    font-size: 14px;
    line-height: 18px;
    color: #333;
}

/* ---------------------------------------
 * Responsive tweaks
 * -------------------------------------*/
@media (max-width: 991.98px) {
    .audit-score-circle {
        margin-bottom: .5rem;
    }

    .audit-issue-row {
        padding: .75rem .6rem;
    }
}

@media (max-width: 575.98px) {
    .audit-search-preview-google-title,
    .audit-search-preview-bing-title,
    .audit-search-preview-yandex-title {
        font-size: 17px;
    }

    .audit-search-preview-google-description,
    .audit-search-preview-bing-description,
    .audit-search-preview-yandex-description {
        font-size: 13px;
    }
}
