/*
 * Course Gating for Tutor LMS — Public Styles (v1.0.4)
 * All rules scoped under .lpcg-* to prevent theme conflicts.
 */

/* ── Button base ─────────────────────────────────────────────────────────── */
.lpcg-btn {
    display: inline-block;
    padding: .7em 1.6em;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .1s ease;
}
.lpcg-btn:hover  { transform: translateY(-1px); }
.lpcg-btn:active { transform: translateY(0); }

.lpcg-btn--primary {
    background-color: #0073aa;
    color: #fff !important;
    border-color: #0073aa;
}
.lpcg-btn--primary:hover,
.lpcg-btn--primary:focus {
    background-color: #005d8c;
    border-color: #005d8c;
    color: #fff !important;
}

.lpcg-btn--secondary {
    background-color: transparent;
    color: #0073aa !important;
    border-color: #0073aa;
}
.lpcg-btn--secondary:hover,
.lpcg-btn--secondary:focus {
    background-color: #0073aa;
    color: #fff !important;
}

.lpcg-btn--sm {
    padding: .4em 1em;
    font-size: .875rem;
}

/* ── Access Denied page ──────────────────────────────────────────────────── */
.lpcg-access-denied {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 1.5rem;
    min-height: 40vh;
}

.lpcg-access-denied__inner {
    max-width: 540px;
    width: 100%;
    text-align: center;
    padding: 3rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.lpcg-access-denied__icon {
    color: #c53030;
    margin-bottom: 1.25rem;
    display: block;
}

.lpcg-access-denied__heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 .9rem;
    color: #1a202c;
    line-height: 1.2;
}

.lpcg-access-denied__message {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.lpcg-access-denied__actions {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.lpcg-access-denied__login-hint {
    font-size: .9rem;
    color: #718096;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
.lpcg-access-denied__login-hint a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Inline locked block ─────────────────────────────────────────────────── */
.lpcg-locked-block {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.75rem 0;
    background: #f7fafc;
}

.lpcg-locked-block__teaser {
    padding: 1.5rem;
    color: #4a5568;
    position: relative;
}
.lpcg-locked-block__teaser::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, transparent, #f7fafc);
}

.lpcg-locked-block__overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.lpcg-locked-block__overlay-inner {
    text-align: center;
    max-width: 400px;
}

.lpcg-locked-block__icon {
    display: block;
    color: #0073aa;
    margin-bottom: .85rem;
}

.lpcg-locked-block__message {
    font-size: 1rem;
    color: #4a5568;
    margin: 0 0 1.15rem;
    line-height: 1.6;
}

/* ── Unlocked block (no style needed — content renders normally) ─────────── */
.lpcg-unlocked-block {}
