/**
 * File Path: assets/css/mbs-admin-settings-license.css
 * License tab styles; loaded when the License tab is active.
 * @package MyBookShowroom
 * @since   1.0.0
 */

/* ----- Tab wrapper ----- */
.mbs-license-tab {
    max-width: 900px;
    padding-top: 12px;
}

/* --------------------------------------------- */
/* LICENSE TAB (F5 — class-mbs-tab-license-render) */
/* --------------------------------------------- */

.mbs-license-activate-btn {
    margin-left: 8px;
}

/* JS-toggled: child-admin-license.js slideDown on #mbs-register-free click.
   display:none is the stable initial state — safe to own in CSS. */
.mbs-license-register-modal {
    display: none;
    background: #f8f8f8;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-top: 16px;
    max-width: 480px;
}

.mbs-license-modal-heading {
    margin-top: 0;
}

.mbs-license-free-key-btn {
    margin-left: 8px;
}

/* JS-toggled: child-admin-license.js slideDown after key is returned.
   display:none is the stable initial state — safe to own in CSS. */
.mbs-license-key-result {
    display: none;
    margin-top: 12px;
}

.mbs-license-upgrade-btn {
    margin-left: 8px;
}

.mbs-license-since {
    margin-left: 8px;
    color: #646970;
}

/* --------------------------------------------- */
/* TIER BADGE                                     */
/* --------------------------------------------- */

.mbs-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1.6;
}

.mbs-badge-free {
    background: #f0f0f1;
    color: #3c434a;
    border: 1px solid #c3c4c7;
}

.mbs-badge-pro {
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #a4c1f7;
}

/* PLG-055: Publisher tier — premium gold treatment */
.mbs-badge-pub {
    background: linear-gradient(135deg, #b8860b 0%, #f5c518 45%, #c8960c 100%);
    color: #fff;
    border: 1px solid #a07008;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
    box-shadow: 0 1px 4px rgba(184, 134, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mbs-badge-dev {
    background: var(--mbs-lavender-pale);
    color: #5a3a72;
    border: 1px solid #c4a8df;
}

.mbs-badge-large {
    font-size: 14px;
    padding: 4px 14px;
}

/* --------------------------------------------- */
/* STATUS HERO                                    */
/* --------------------------------------------- */

.mbs-license-status-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

/* PLG-055: Publisher hero — warm amber/gold tint */
.mbs-license-status-hero.mbs-hero-pub {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fde8a0 100%);
    border-color: #e5a800;
    box-shadow: 0 0 0 3px rgba(229, 168, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* PRO hero — green tint, matching PUB styling pattern */
.mbs-license-status-hero.mbs-hero-pro {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 60%, #a7f3d0 100%);
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.10), 0 1px 4px rgba(0, 0, 0, 0.07);
}

.mbs-hero-pro .mbs-badge-pro {
    background: linear-gradient(135deg, #065f46 0%, #10b981 45%, #059669 100%);
    color: #fff;
    border: 1px solid #047857;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* FREE hero — light blue tint with upgrade nudge */
.mbs-license-status-hero.mbs-hero-free {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 60%, #bfdbfe 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10), 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* FREE registered hero — soft green; signals completed action without competing with PRO green */
.mbs-license-status-hero.mbs-hero-free-registered {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 60%, #bbf7d0 100%);
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10), 0 1px 4px rgba(0, 0, 0, 0.07);
}

.mbs-hero-free-registered .mbs-badge-free {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.mbs-license-status-label {
    font-size: 13px;
    color: #3c434a;
}

/* PLG-055: site-usage pill — pushed to far right of the flex hero */
.mbs-license-manage-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.75;
}

.mbs-license-manage-link:hover {
    opacity: 1;
    color: var(--mbs-status-info);
}

/* When sites-counter is also present, manage link sits to its right */
.mbs-license-sites-counter + .mbs-license-manage-link {
    margin-left: 10px;
}

.mbs-license-sites-counter {
    margin-left: auto;
    display: inline-block;
    padding: 3px 12px;
    background: rgba(229, 168, 0, 0.12);
    border: 1px solid rgba(184, 134, 11, 0.45);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #7a4f00;
    white-space: nowrap;
}

/* --------------------------------------------- */
/* FEATURE COMPARISON TABLE                       */
/* --------------------------------------------- */

.mbs-license-feature-table {
    margin: 16px 0 24px;
    max-width: 680px;
    border-collapse: collapse;
}

.mbs-license-feature-table th,
.mbs-license-feature-table td {
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: 1px solid #dcdcde;
}

.mbs-license-feature-table thead th {
    font-weight: 700;
    background: #f6f7f7;
    color: #1d2327;
}

.mbs-lft-tier {
    text-align: center;
    width: 72px;
}

.mbs-lft-yes {
    color: var(--mbs-status-ok);
    font-size: 15px;
    font-weight: 700;
}

.mbs-lft-no {
    color: #c3c4c7;
    font-size: 15px;
}
