/**
 * Ozi Internal Link Booster — Dashboard + Admin Styles (v1.4.0)
 * Brand: #97144d maroon / dark bg #0e0e10
 * WordPress.org compliant — no inline <style> output, scoped classes
 */

/* -------------------------------------------------------
   WRAPPER
------------------------------------------------------- */
.ozi-ilb-wrap {
    max-width: 1100px;
    margin-top: 20px;
}

/* -------------------------------------------------------
   GENERAL BOX
------------------------------------------------------- */
.ozi-ilb-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.ozi-ilb-box h2 {
    margin-top: 0;
    font-size: 20px;
}

.ozi-ilb-list {
    padding-left: 20px;
    list-style: disc;
}

.ozi-ilb-list li {
    margin-bottom: 6px;
}

.ozi-ilb-help {
    color: #666;
    font-size: 13px;
    margin-top: 6px;
}

.ozi-ilb-good {
    color: #246b3a;
    font-weight: 600;
}

/* -------------------------------------------------------
   SECTION TITLE
------------------------------------------------------- */
.ozi-ilb-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 14px;
    color: #1e1e1e;
}

/* -------------------------------------------------------
   PRO UPGRADE BANNER (dismissible)
------------------------------------------------------- */
.ozi-ilb-pro-banner {
    background: linear-gradient(90deg, #97144d, #c44d80);
    border-radius: 10px;
    margin-bottom: 22px;
    padding: 2px;
}

.ozi-ilb-pro-banner-inner {
    background: linear-gradient(90deg, #97144d, #c44d80);
    border-radius: 9px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ozi-ilb-pro-banner-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.ozi-ilb-pro-banner-text {
    flex: 1;
    min-width: 200px;
    color: #fff;
}

.ozi-ilb-pro-banner-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    color: #fff;
}

.ozi-ilb-pro-banner-text span {
    font-size: 13px;
    opacity: 0.88;
}

.ozi-ilb-pro-banner-btn {
    background: #fff;
    color: #97144d;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}

.ozi-ilb-pro-banner-btn:hover {
    background: #f5e6ed;
    color: #7a0e3e;
}

.ozi-ilb-pro-banner-dismiss {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.ozi-ilb-pro-banner-dismiss:hover {
    color: #fff;
    background: rgba(0,0,0,0.15);
}

/* -------------------------------------------------------
   HERO HEADER
------------------------------------------------------- */
.ozi-ilb-hero {
    background: linear-gradient(90deg, #97144d, #c44d80);
    padding: 28px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.ozi-ilb-hero-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.ozi-ilb-hero-sub {
    margin: 0 0 16px;
    opacity: 0.85;
    font-size: 14px;
}

.ozi-ilb-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ozi-ilb-rescan-btn {
    background: #fff !important;
    color: #97144d !important;
    border-color: #fff !important;
    font-weight: 700 !important;
}

.ozi-ilb-rescan-btn:hover {
    background: #f5e6ed !important;
}

.ozi-ilb-last-scan {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* -------------------------------------------------------
   HEALTH CARD
------------------------------------------------------- */
.ozi-ilb-health-card {
    border-left: 5px solid #97144d;
}

.ozi-ilb-health-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ozi-ilb-health-body {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.ozi-ilb-health-score {
    min-width: 120px;
}

.ozi-ilb-health-score-number {
    font-size: 48px;
    font-weight: 900;
    color: #97144d;
    line-height: 1;
}

.ozi-ilb-health-score-number span {
    font-size: 20px;
    color: #aaa;
}

.ozi-ilb-health-barwrap {
    flex: 1;
    min-width: 200px;
    padding-top: 8px;
}

.ozi-ilb-health-bar {
    height: 12px;
    background: #f0f0f0;
    border-radius: 99px;
    overflow: hidden;
}

.ozi-ilb-health-barfill {
    height: 100%;
    background: linear-gradient(90deg, #97144d, #e05580);
    border-radius: 99px;
    transition: width 0.6s ease;
}

/* -------------------------------------------------------
   STATUS BADGES
------------------------------------------------------- */
.ozi-ilb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.ozi-ilb-badge--strong { background: #d4edda; color: #155724; }
.ozi-ilb-badge--fair   { background: #fff3cd; color: #856404; }
.ozi-ilb-badge--poor   { background: #f8d7da; color: #721c24; }

/* -------------------------------------------------------
   DELTA
------------------------------------------------------- */
.ozi-ilb-delta {
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

.ozi-ilb-delta--up      { color: #27ae60; }
.ozi-ilb-delta--down    { color: #e74c3c; }
.ozi-ilb-delta--neutral { color: #888; }

/* -------------------------------------------------------
   STATS GRID
------------------------------------------------------- */
.ozi-ilb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.ozi-ilb-stat-card {
    background: #f8f8f8;
    border: 1px solid #ececec;
    padding: 18px;
    text-align: center;
    border-radius: 10px;
}

.ozi-ilb-stat-card--locked {
    border-left: 4px solid #f59e0b;
}

.ozi-ilb-stat-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.ozi-ilb-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #97144d;
    line-height: 1;
}

.ozi-ilb-stat-value--warn {
    color: #c0392b;
}

.ozi-ilb-stat-sub {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.ozi-ilb-stat-sub a {
    color: #97144d;
}

/* -------------------------------------------------------
   ORPHAN CARD
------------------------------------------------------- */
.ozi-ilb-orphan-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 14px 0;
}

.ozi-ilb-orphan-count {
    font-size: 40px;
    font-weight: 900;
    color: #97144d;
    line-height: 1;
}

.ozi-ilb-orphan-text {
    font-size: 16px;
    color: #555;
}

/* -------------------------------------------------------
   PRO TEASE (inside card)
------------------------------------------------------- */
.ozi-ilb-pro-tease {
    background: #fff8f4;
    border-left: 4px solid #97144d;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-top: 14px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ozi-ilb-pro-tease strong { color: #97144d; }

.ozi-ilb-pro-link {
    background: #97144d;
    color: #fff;
    padding: 5px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
}

.ozi-ilb-pro-link:hover {
    background: #7a0e3e;
    color: #fff;
}

/* -------------------------------------------------------
   TABLE
------------------------------------------------------- */
.ozi-ilb-table {
    border-collapse: collapse;
    margin-bottom: 14px;
}

.ozi-ilb-table th,
.ozi-ilb-table td {
    padding: 10px 14px;
}

.ozi-ilb-table input[type="text"],
.ozi-ilb-table input[type="url"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* -------------------------------------------------------
   KEYWORDS ACTIONS ROW
------------------------------------------------------- */
.ozi-ilb-keywords-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* -------------------------------------------------------
   DELETE ICON
------------------------------------------------------- */
.ozi-ilb-delete {
    cursor: pointer;
    color: #b30000;
    font-size: 15px;
    transition: 0.2s;
    user-select: none;
}

.ozi-ilb-delete:hover {
    color: #97144d;
}

.ozi-ilb-delete-col {
    text-align: center;
    vertical-align: middle;
    width: 48px;
}

/* -------------------------------------------------------
   BUTTON OVERRIDES (scoped — no global override)
------------------------------------------------------- */
.ozi-ilb-wrap .button-primary {
    background: #97144d !important;
    border-color: #97144d !important;
}

.ozi-ilb-wrap .button-primary:hover {
    background: #7a0e3e !important;
    border-color: #7a0e3e !important;
}

/* -------------------------------------------------------
   REVIEW BOX
------------------------------------------------------- */
.ozi-ilb-review-box {
    background: #ffeee7;
    border-left: 5px solid #97144d;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.ozi-ilb-review-box h2 {
    margin-top: 0;
}

.ozi-ilb-dismiss-link {
    margin-left: 10px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}

.ozi-ilb-dismiss-link:hover {
    color: #97144d;
}

/* -------------------------------------------------------
   CHECKBOX ROW
------------------------------------------------------- */
.ozi-ilb-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* -------------------------------------------------------
   PRO PAGE
------------------------------------------------------- */
.ozi-ilb-pro-page-hero {
    background: linear-gradient(135deg, #0e0e10 0%, #97144d 100%);
    border-radius: 12px;
    padding: 40px 36px;
    color: #fff;
    margin-bottom: 28px;
    text-align: center;
}

.ozi-ilb-pro-page-hero h1 {
    color: #fff;
    font-size: 30px;
    margin: 0 0 10px;
}

.ozi-ilb-pro-page-hero p {
    opacity: 0.85;
    font-size: 15px;
    margin-bottom: 24px;
}

.ozi-ilb-pro-cta-btn {
    background: #fff !important;
    color: #97144d !important;
    border-color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 10px 28px !important;
    height: auto !important;
}

.ozi-ilb-pro-cta-btn:hover {
    background: #f5e6ed !important;
    color: #7a0e3e !important;
}

.ozi-ilb-pro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.ozi-ilb-pro-feature-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.ozi-ilb-pro-feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.ozi-ilb-pro-feature-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #97144d;
}

.ozi-ilb-pro-feature-card p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.ozi-ilb-pro-compare-box table td:nth-child(2),
.ozi-ilb-pro-compare-box table td:nth-child(3) {
    text-align: center;
    width: 120px;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media screen and (max-width: 782px) {
    .ozi-ilb-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ozi-ilb-health-body {
        flex-direction: column;
    }
    .ozi-ilb-pro-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ozi-ilb-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .ozi-ilb-keywords-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .ozi-ilb-stats-grid {
        grid-template-columns: 1fr;
    }
    .ozi-ilb-pro-features-grid {
        grid-template-columns: 1fr;
    }
}
