/**
 * Metered Paywall Styles
 * Location: /styles/paywall.css
 *
 * Lock overlays, content blur, and slide-up signup modal.
 * Only loaded when $is_metered is true (non-members).
 */

/* ========================================
   LOCK OVERLAY & BLUR
   ======================================== */

.tmb-paywall-locked {
    position: relative;
    overflow: hidden;
}

.tmb-paywall-blur {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.tmb-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.tmb-lock-overlay:hover {
    background: rgba(0, 0, 0, 0.65);
}

.tmb-lock-overlay-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.tmb-lock-overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}

.tmb-lock-overlay-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tmb-lock-overlay-content .tmb-unlock-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 24px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tmb-lock-overlay-content .tmb-unlock-btn:hover {
    background: #ff5252;
    color: #fff;
    text-decoration: none;
}


/* ========================================
   SLIDE-UP SIGNUP MODAL
   ======================================== */

.tmb-paywall-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tmb-paywall-modal-backdrop.active {
    opacity: 1;
}

.tmb-paywall-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.tmb-paywall-modal.active {
    transform: translateY(0);
}

.tmb-paywall-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.tmb-paywall-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.tmb-paywall-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
    padding: 0;
}

.tmb-paywall-modal-close:hover {
    background: #ddd;
    color: #333;
}

.tmb-paywall-modal-body {
    flex: 1;
    overflow: hidden;
}

.tmb-paywall-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Drag handle indicator */
.tmb-paywall-modal-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 8px auto 0;
}


/* ========================================
   MATCHUP PAGE SPECIFICS
   ======================================== */

/* Locked game containers - keep header visible */
.game-container.tmb-paywall-locked .game-content-area {
    min-height: 200px;
}


/* ========================================
   SYSTEMS PAGE SPECIFICS
   ======================================== */

/* Locked card sections - heading visible, buttons hidden behind overlay */
.card.tmb-paywall-locked .card-header {
    position: relative;
    z-index: 15;
    pointer-events: none;
}

/* Hide buttons/controls in locked card headers but keep the heading */
.card.tmb-paywall-locked .card-header .btn,
.card.tmb-paywall-locked .card-header .btn-group,
.card.tmb-paywall-locked .card-header .dropdown,
.card.tmb-paywall-locked .card-header #systems-header-controls {
    visibility: hidden;
}

.card.tmb-paywall-locked .card-body {
    min-height: 120px;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .tmb-paywall-modal {
        height: 95vh;
    }

    .tmb-lock-overlay-content i {
        font-size: 1.5rem;
    }

    .tmb-lock-overlay-content p {
        font-size: 0.85rem;
    }

    .tmb-lock-overlay-content .tmb-unlock-btn {
        font-size: 0.8rem;
        padding: 6px 18px;
    }
}
