/* ===========================================
   BUSINESS IDEAS — PAYWALL (UPGRADE CARD + GHOST GRID)
   Adapts the YouTube Outliers paywall pattern to the bi-dark-theme.
   =========================================== */

/* ─── Upgrade card ─────────────────────────────── */

.bi-upgrade-card {
    margin-top: 40px;
    padding: 36px 28px 28px;
    border: 1px solid var(--bi-border-light);
    border-radius: var(--bi-radius);
    background: linear-gradient(135deg, var(--bi-surface-elevated) 0%, var(--bi-surface) 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--bi-shadow);
}

.bi-upgrade-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bi-pink-glow) 0%, transparent 70%);
    pointer-events: none;
}

.bi-upgrade-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bi-yellow-glow) 0%, transparent 70%);
    pointer-events: none;
}

.bi-upgrade-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.bi-upgrade-title {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 800;
    color: var(--bi-text-primary);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

.bi-upgrade-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: var(--bi-text-secondary);
    max-width: 580px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.bi-upgrade-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.bi-upgrade-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 1px solid var(--bi-pink);
    border-radius: var(--bi-radius-sm);
    background: var(--bi-pink);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: var(--bi-shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    position: relative;
    z-index: 1;
}

.bi-upgrade-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--bi-shadow-hover);
    background: #f0a3b6;
}

.bi-upgrade-cta:active {
    transform: translate(2px, 2px);
    box-shadow: var(--bi-shadow-sm);
}

.bi-upgrade-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid var(--bi-border-light);
    border-radius: var(--bi-radius-sm);
    background: transparent;
    color: var(--bi-text-primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
    position: relative;
    z-index: 1;
}

.bi-upgrade-cta-secondary:hover {
    background: var(--bi-surface-hover);
    border-color: var(--bi-teal);
}

.bi-upgrade-strike {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--bi-text-muted);
    position: relative;
    z-index: 1;
}

.bi-upgrade-strike span {
    text-decoration: line-through;
    margin-left: 4px;
}

.bi-upgrade-meta {
    margin: 18px 0 0;
    font-size: 12px;
    color: var(--bi-text-muted);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

/* ─── Ghost grid teaser ────────────────────────── */

.bi-ghost-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 1023px) {
    .bi-ghost-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
    .bi-ghost-grid { grid-template-columns: 1fr; }
}

.bi-ghost-card {
    border: 1px solid var(--bi-border);
    border-radius: var(--bi-radius);
    background: var(--bi-surface);
    padding: 0 0 16px;
    box-shadow: var(--bi-shadow-sm);
    overflow: hidden;
}

.bi-ghost-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.04) 70%);
    background-size: 200% 100%;
    animation: bi-ghost-shimmer 2.4s linear infinite;
    margin-bottom: 16px;
}

.bi-ghost-line {
    height: 12px;
    margin: 0 16px 8px;
    border-radius: 6px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 70%);
    background-size: 200% 100%;
    animation: bi-ghost-shimmer 2.4s linear infinite;
}

.bi-ghost-line.short {
    width: 55%;
}

@keyframes bi-ghost-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bi-ghost-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0) 0%, rgba(15, 15, 26, 0.55) 60%, rgba(15, 15, 26, 0.85) 100%);
    filter: none;
}

.bi-ghost-lock {
    width: 60px;
    height: 60px;
    color: var(--bi-text-primary);
    background: var(--bi-surface-elevated);
    padding: 14px;
    border-radius: 50%;
    border: 1px solid var(--bi-border-light);
    box-shadow: var(--bi-shadow);
}

/* ─── Paywall page (full-page detail lock) ─────── */

.bi-paywall-page {
    max-width: 980px;
}

.bi-paywall-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bi-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.12s ease;
}

.bi-paywall-back:hover {
    color: var(--bi-teal);
}

.bi-paywall-hero {
    padding: 32px 0 8px;
    border-bottom: 1px solid var(--bi-border-subtle);
    margin-bottom: 16px;
}

.bi-paywall-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bi-pink-glow);
    color: var(--bi-pink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 14px;
}

.bi-paywall-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--bi-text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.bi-paywall-teaser {
    font-size: 17px;
    line-height: 1.65;
    color: var(--bi-text-secondary);
    max-width: 720px;
    margin: 0 0 32px;
}

.bi-paywall-footer {
    margin-top: 32px;
    padding: 20px;
    text-align: center;
    color: var(--bi-text-muted);
    font-size: 14px;
}

.bi-paywall-footer a {
    color: var(--bi-teal);
    text-decoration: none;
    font-weight: 600;
}

.bi-paywall-footer a:hover {
    text-decoration: underline;
}
