/**
 * Blog Over — Admin Dashboard & Starter Sites Styles
 *
 * Neutral professional tone (Astra-like), clean white cards,
 * subtle borders, no flashy effects.
 *
 * @package Blog_Over
 * @since   1.4.0
 */

/* =========================================
   Variables
   ========================================= */
.blog-over-dashboard,
.blog-over-starter-sites {
    --bo-primary: #2271b1;
    --bo-primary-dark: #135e96;
    --bo-accent: #2271b1;
    --bo-green: #2c9a4b;
    --bo-bg: #f6f7f7;
    --bo-card-bg: #fff;
    --bo-border: #e2e4e7;
    --bo-text: #1d2327;
    --bo-text-sub: #646970;
    --bo-radius: 8px;
}

/* =========================================
   Reset wrapper — escape WP admin padding
   ========================================= */
.blog-over-dashboard,
.blog-over-starter-sites {
    /*margin: -10px -20px 0;*/
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* =========================================
   Banner
   ========================================= */
.blog-over-dash-banner {
    background: var(--bo-primary);
    padding: 0;
}

.blog-over-dash-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-over-dash-banner-text h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.blog-over-dash-banner-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.blog-over-dash-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   Buttons
   ========================================= */
.blog-over-dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    border: none;
    white-space: nowrap;
}

.blog-over-dash-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Banner pill buttons */
.blog-over-dash-btn-banner {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.blog-over-dash-btn-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Upgrade button (white solid) */
.blog-over-dash-btn-upgrade {
    background: #fff;
    color: var(--bo-primary-dark);
    border: 1.5px solid #fff;
}

.blog-over-dash-btn-upgrade:hover {
    background: #e8f0fe;
    color: var(--bo-primary-dark);
}

/* Primary CTA */
.blog-over-dash-btn-primary {
    background: var(--bo-primary);
    color: #fff;
    padding: 11px 28px;
    font-size: 14px;
}

.blog-over-dash-btn-primary:hover {
    background: var(--bo-primary-dark);
    color: #fff;
}

/* Outline */
.blog-over-dash-btn-outline {
    background: transparent;
    color: var(--bo-primary);
    border: 1.5px solid var(--bo-primary);
    padding: 8px 22px;
}

.blog-over-dash-btn-outline:hover {
    background: var(--bo-primary);
    color: #fff;
}

/* =========================================
   Two-Column Body
   ========================================= */
.blog-over-dash-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 30px 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* =========================================
   Card
   ========================================= */
.blog-over-dash-card {
    background: var(--bo-card-bg);
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius);
    padding: 24px;
    margin-bottom: 0;
}

.blog-over-dash-main .blog-over-dash-card {
    margin-bottom: 0;
}

.blog-over-dash-sidebar .blog-over-dash-card {
    margin-bottom: 20px;
}

.blog-over-dash-sidebar .blog-over-dash-card:last-child {
    margin-bottom: 0;
}

.blog-over-dash-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--bo-text);
    line-height: 1.4;
}

.blog-over-dash-icon-accent {
    color: var(--bo-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* =========================================
   Comparison Table
   ========================================= */
.blog-over-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.blog-over-dash-table thead th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--bo-bg);
    border-bottom: 2px solid var(--bo-border);
    color: var(--bo-text-sub);
}

.blog-over-dash-th-feature {
    text-align: left !important;
    width: 55%;
}

.blog-over-dash-th-free {
    width: 22%;
}

.blog-over-dash-th-pro {
    width: 23%;
    color: var(--bo-primary) !important;
}

.blog-over-dash-table tbody tr {
    border-bottom: 1px solid #f0f0f1;
    transition: background-color 0.15s ease;
}

.blog-over-dash-table tbody tr:hover {
    background: #f0f6fc;
}

.blog-over-dash-table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
}

.blog-over-dash-td-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--bo-text);
}

.blog-over-dash-feature-icon {
    color: var(--bo-text-sub);
    font-size: 18px;
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.blog-over-dash-td-value {
    text-align: center;
    font-weight: 600;
    color: var(--bo-text-sub);
}

/* Pro-only row (subtle blue tint) */
.blog-over-dash-row-pro {
    background-color: #f0f6fc;
}

.blog-over-dash-row-pro:hover {
    background-color: #e3eef8 !important;
}

/* Check icon */
.blog-over-dash-check {
    color: var(--bo-green);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Dash / not available */
.blog-over-dash-dash {
    color: #ccc;
    font-size: 18px;
    font-weight: 700;
}

/* CTA below table */
.blog-over-dash-table-cta {
    text-align: center;
    padding: 22px 0 4px;
}

/* =========================================
   Quick Action Links
   ========================================= */
.blog-over-dash-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-over-dash-links li {
    margin: 0;
}

.blog-over-dash-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    font-size: 14px;
    color: var(--bo-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-weight: 500;
}

.blog-over-dash-links li a:hover {
    background: #f0f6fc;
    color: var(--bo-primary);
}

.blog-over-dash-links li a .dashicons {
    color: var(--bo-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* =========================================
   Theme Info Table
   ========================================= */
.blog-over-dash-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.blog-over-dash-info-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.blog-over-dash-info-table tr:last-child {
    border-bottom: none;
}

.blog-over-dash-info-table td {
    padding: 10px 0;
}

.blog-over-dash-info-table td:first-child {
    color: var(--bo-text-sub);
    font-weight: 500;
}

.blog-over-dash-info-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--bo-text);
}

/* =========================================
   Star Rating
   ========================================= */
.blog-over-dash-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.blog-over-dash-stars .dashicons {
    color: #f0b849;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.blog-over-dash-rate-text {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--bo-text-sub);
    line-height: 1.5;
}

/* =========================================
   Dashboard Responsive
   ========================================= */
@media screen and (max-width: 960px) {
    .blog-over-dash-body {
        grid-template-columns: 1fr;
    }

    .blog-over-dash-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .blog-over-dash-banner-actions {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {

    .blog-over-dashboard,
    .blog-over-starter-sites {
        margin: -10px -10px 0;
    }

    .blog-over-dash-banner-inner {
        padding: 20px 16px;
    }

    .blog-over-dash-body {
        padding: 16px;
    }

    .blog-over-dash-card {
        padding: 18px 16px;
    }

    .blog-over-dash-table thead th,
    .blog-over-dash-table tbody td {
        padding: 10px 10px;
        font-size: 13px;
    }

    .blog-over-dash-feature-icon {
        display: none;
    }

    .blog-over-dash-banner-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   Welcome Notice
   ========================================= */
.blog-over-welcome-notice-wrapper {
    background: #fff;
    border: 1px solid #dcdcde;
    border-left: 4px solid #2271b1;
    border-bottom: 3px solid #2271b1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 0;
    margin: 15px 0 20px;
}

.blog-over-welcome-notice-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 0;
}

/* — Left column: content — */
.blog-over-welcome-notice-content {
    padding: 24px 30px 20px;
    display: flex;
    flex-direction: column;
}

.blog-over-welcome-greeting {
    font-size: 13px;
    color: #6c7781;
    margin: 0 0 2px;
    font-weight: 400;
    line-height: 1.5;
}

.blog-over-welcome-title {
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1d2327;
    line-height: 1.3;
}

.blog-over-welcome-text {
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Primary button row */
.blog-over-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.blog-over-welcome-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
}

.blog-over-welcome-actions .button .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 15px;
}

.blog-over-btn-get-started {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

.blog-over-btn-get-started:hover,
.blog-over-btn-get-started:focus {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}

.blog-over-btn-get-started.updating-message {
    opacity: 0.7;
    pointer-events: none;
}

.blog-over-btn-secondary {
    background: #f6f7f7 !important;
    border-color: #c3c4c7 !important;
    color: #2c3338 !important;
}

.blog-over-btn-secondary:hover,
.blog-over-btn-secondary:focus {
    background: #f0f0f1 !important;
    border-color: #8c8f94 !important;
    color: #1d2327 !important;
}

/* Secondary links row */
.blog-over-welcome-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.blog-over-welcome-links a {
    color: #2271b1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.blog-over-welcome-links a:hover,
.blog-over-welcome-links a:focus {
    color: #135e96;
}

.blog-over-welcome-links .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 15px;
    opacity: 0.85;
}

/* Notice footer — below both columns */
.blog-over-welcome-notice-footer {
    border-top: 1px solid #e2e4e7;
    padding: 10px 30px;
}

.blog-over-notice-dismiss-text {
    color: #6c7781;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    display: inline-block;
    background: none;
    border: none;
    transition: color 0.15s ease;
}

.blog-over-notice-dismiss-text:hover,
.blog-over-notice-dismiss-text:focus {
    color: #d63638;
    text-decoration: underline;
}

/* — Right column: screenshot — */
.blog-over-welcome-notice-image {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-left: 1px solid #e2e4e7;
}

.blog-over-welcome-screenshot {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #dcdcde;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.blog-over-welcome-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

/* — Responsive — */

/* Tablet */
@media screen and (max-width: 960px) {
    .blog-over-welcome-notice-inner {
        grid-template-columns: 1fr 280px;
    }

    .blog-over-welcome-notice-content {
        padding: 20px 24px 18px;
    }

    .blog-over-welcome-notice-image {
        padding: 16px;
    }

    .blog-over-welcome-title {
        font-size: 19px;
    }
}

/* Mobile: single column, image on top */
@media screen and (max-width: 782px) {
    .blog-over-welcome-notice-inner {
        grid-template-columns: 1fr;
    }

    .blog-over-welcome-notice-image {
        order: -1;
        border-left: none;
        border-bottom: 1px solid #e2e4e7;
        padding: 16px;
    }

    .blog-over-welcome-screenshot {
        max-width: 360px;
    }

    .blog-over-welcome-notice-content {
        padding: 20px 20px 16px;
    }

    .blog-over-welcome-links {
        gap: 12px;
    }
}

/* =========================================
   Starter Sites Page
   ========================================= */

/* Main wrapper — prevent horizontal scroll */
.blog-over-starter-sites {
    /*margin: -1px -20px 0;*/
    overflow-x: hidden;
}

/* Page header */
.blog-over-starter-header {
    background: var(--bo-primary);
    padding: 0;
}

.blog-over-starter-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 30px;
}

.blog-over-starter-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.blog-over-starter-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* Grid */
.blog-over-starter-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 30px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.blog-over-starter-card {
    background: var(--bo-card-bg);
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.blog-over-starter-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image container — 4:3 */
.blog-over-starter-card-image {
    position: relative;
    overflow: hidden;
    background: var(--bo-bg);
}

.blog-over-starter-card-image::before {
    content: "";
    display: block;
    padding-top: 75%;
    /* 4:3 aspect ratio */
}

.blog-over-starter-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3D Corner Ribbon Badge */
.blog-over-starter-badge {
    position: absolute;
    top: 5px;
    right: 0;
    padding: 5px 14px 5px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.5;
    z-index: 2;
    border-radius: 3px 0 0 3px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15),
        -1px 0 3px rgba(0, 0, 0, 0.08);
}

/* Folded edge — 3D depth under the ribbon */
.blog-over-starter-badge::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 0;
}

.blog-over-starter-badge-free {
    background: linear-gradient(135deg, #2e8bc0, #2271b1);
}

.blog-over-starter-badge-free::after {
    border-color: #1a5a8a transparent transparent transparent;
}

.blog-over-starter-badge-pro {
    background: linear-gradient(135deg, #7c6cf0, #6c5ce7);
}

.blog-over-starter-badge-pro::after {
    border-color: #5040b0 transparent transparent transparent;
}

/* Card body */
.blog-over-starter-card-body {
    padding: 16px 20px 20px;
}

.blog-over-starter-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bo-text);
    margin: 0 0 14px;
    line-height: 1.3;
}

/* Card actions */
.blog-over-starter-card-actions {
    display: flex;
    gap: 8px;
}

.blog-over-starter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
    border: 1px solid var(--bo-border);
    background: var(--bo-card-bg);
    color: var(--bo-text);
}

.blog-over-starter-btn:hover {
    border-color: var(--bo-primary);
    color: var(--bo-primary);
    background: #f0f6fc;
}

.blog-over-starter-btn-primary {
    background: var(--bo-primary);
    color: #fff;
    border-color: var(--bo-primary);
}

.blog-over-starter-btn-primary:hover {
    background: var(--bo-primary-dark);
    border-color: var(--bo-primary-dark);
    color: #fff;
}

.blog-over-starter-btn-pro {
    background: #6c5ce7;
    color: #fff;
    border-color: #6c5ce7;
}

.blog-over-starter-btn-pro:hover {
    background: #5a4bd1;
    border-color: #5a4bd1;
    color: #fff;
}

.blog-over-starter-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

/* No demos message */
.blog-over-starter-empty {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
}

.blog-over-starter-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #c3c4c7;
    margin-bottom: 16px;
}

.blog-over-starter-empty p {
    font-size: 15px;
    color: var(--bo-text-sub);
    max-width: 500px;
    margin: 0 auto 24px;
}

/* Plugin cards */
.blog-over-plugin-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.blog-over-plugin-card {
    background: var(--bo-card-bg);
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius);
    padding: 20px 24px;
    text-align: left;
    min-width: 260px;
    max-width: 340px;
    flex: 1;
}

.blog-over-plugin-card h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bo-text);
}

.blog-over-plugin-card p {
    font-size: 13px;
    color: var(--bo-text-sub);
    margin: 0 0 12px;
    max-width: none;
}

.blog-over-plugin-card .button {
    margin: 0;
}

.blog-over-plugin-card .button.updating-message {
    opacity: 0.7;
    pointer-events: none;
}

/* Starter Sites Responsive */
@media screen and (max-width: 960px) {
    .blog-over-starter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .blog-over-starter-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .blog-over-starter-header-inner {
        padding: 20px 16px;
    }
}

/* =========================================
   Changelog (Dashboard — Need Help card)
   ========================================= */
.blog-over-dash-changelog-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f1;
    color: var(--bo-text);
}

.blog-over-dash-changelog-title .dashicons {
    color: var(--bo-primary);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.blog-over-dash-changelog {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.blog-over-dash-changelog::-webkit-scrollbar {
    width: 5px;
}

.blog-over-dash-changelog::-webkit-scrollbar-track {
    background: #f6f7f7;
    border-radius: 3px;
}

.blog-over-dash-changelog::-webkit-scrollbar-thumb {
    background: #c3c4c7;
    border-radius: 3px;
}

.blog-over-dash-changelog::-webkit-scrollbar-thumb:hover {
    background: #8c8f94;
}

.blog-over-dash-changelog-version {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
}

.blog-over-dash-changelog-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-over-dash-changelog-version strong {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--bo-primary);
    background: #f0f6fc;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.blog-over-dash-changelog-version ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-over-dash-changelog-version ul li {
    position: relative;
    padding: 3px 0 3px 16px;
    font-size: 13px;
    color: var(--bo-text-sub);
    line-height: 1.5;
}

.blog-over-dash-changelog-version ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--bo-primary);
    font-weight: 700;
}
