/* MS Plan Access Control — Frontend Styles */

/* Curriculum list item — locked state */
.mspa-locked {
    opacity: 0.75;
    position: relative;
}

.mspa-locked > a,
.mspa-locked > .stm-lms-curriculum-section__lesson-title {
    pointer-events: none;
    cursor: default;
    color: #999 !important;
    text-decoration: none !important;
}

/* Lock overlay appended inside the curriculum list item */
.mspa-lock-overlay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 12px;
    color: #777;
    vertical-align: middle;
    flex-wrap: wrap;
}

.mspa-lock-icon {
    font-size: 13px;
    line-height: 1;
}

.mspa-lock-label {
    color: #555;
}

.mspa-lock-label strong {
    color: #0d6efd;
}

.mspa-upgrade-btn {
    display: inline-block;
    padding: 2px 10px;
    background: #0d6efd;
    color: #fff !important;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s;
    line-height: 1.6;
}

.mspa-upgrade-btn:hover {
    background: #0b5ed7;
    color: #fff !important;
}

/* Unlocked — subtle indicator */
.mspa-unlocked .mspa-lock-overlay {
    display: none;
}

/* Upgrade notice bar at top of page */
.mspa-upgrade-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #664d03;
}

.mspa-upgrade-notice a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: underline;
}

/* WooCommerce product badge */
.mspa-product-badge {
    font-family: inherit;
}

/* Curriculum items that are locked get a visual affordance */
li.mspa-locked {
    background: #fafafa;
}

li.mspa-locked::before {
    content: '';
}

/* Plans comparison shortcode (optional future use) */
.mspa-plans-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.mspa-compare-card {
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}

.mspa-compare-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
}

.mspa-compare-card--premium {
    border-color: #d4a017;
    background: linear-gradient(to bottom, #fffdf2, #fff);
}

.mspa-compare-card__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.mspa-compare-card__buy {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #0d6efd;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.mspa-compare-card__buy:hover {
    background: #0b5ed7;
    color: #fff;
}

@media (max-width: 600px) {
    .mspa-plans-compare {
        grid-template-columns: 1fr;
    }
}
