/* ===============================================
   Monetization Common CSS — GuíaGamer & GamerVault
   Part A: Paywall Preview Ratio Indicator
   Part B: Content Unlock Progress Bar
   Part C: Paywall Blur Overlay
   =============================================== */

/* ── Part A: Preview Ratio Banner (Free User) ── */
.preview-banner {
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,165,0,0.04));
    border: 1px solid rgba(255,215,0,0.20);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #ccc;
    position: relative;
}
.preview-banner .info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.preview-banner .info-text {
    flex: 1;
    line-height: 1.5;
}
.preview-banner .info-text strong {
    color: #ffd700;
}
.preview-banner .unlock-link {
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #111;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.preview-banner .unlock-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255,215,0,0.3);
}

/* ── Part B: Content Unlock Progress Bar ── */
.paywall-progress {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.paywall-progress .progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: #999;
}
.paywall-progress .progress-label .free-pct {
    color: #4ade80;
    font-weight: 700;
}
.paywall-progress .progress-label .locked-pct {
    color: #f59e0b;
    font-weight: 700;
}
.paywall-progress .progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.paywall-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}
.paywall-progress .progress-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ffd700;
    animation: lockPulse 2s ease-in-out infinite;
}
@keyframes lockPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.paywall-progress .progress-cta {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}
.paywall-progress .progress-cta a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.paywall-progress .progress-cta a:hover {
    color: #fff;
}
.paywall-progress .progress-cta .divider {
    color: rgba(255,255,255,0.2);
}

/* ── Part C: CSS Blur Overlay for Paywalled Content ── */
.paywall-blur-container {
    position: relative;
    margin: 1.5rem 0;
    overflow: hidden;
}
.paywall-blur-content {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
    max-height: 300px;
    overflow: hidden;
}
.paywall-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8,8,15,0.55);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    z-index: 2;
}
.paywall-blur-cta {
    text-align: center;
    padding: 2rem;
}
.paywall-blur-cta .lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: floatUpDown 2s ease-in-out infinite;
}
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.paywall-blur-cta h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.paywall-blur-cta .benefits {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
    font-size: 0.85rem;
    color: #aaa;
    line-height: 2;
}
.paywall-blur-cta .benefits li::before {
    content: '✨ ';
}
.paywall-blur-cta .btn-unlock {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #111;
    padding: 0.65rem 2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255,215,0,0.2);
}
.paywall-blur-cta .btn-unlock:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(255,215,0,0.35);
}

/* ── Part C: "48h Free" Badge ── */
.badge-48h-free {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: freePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(236,72,153,0.3);
}
@keyframes freePulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(236,72,153,0.3); }
    50% { box-shadow: 0 4px 20px rgba(236,72,153,0.5); }
}
.badge-48h-free .countdown {
    font-variant-numeric: tabular-nums;
    background: rgba(0,0,0,0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    margin-left: 0.2rem;
}

/* ── Prediction Widget (GuíaGamer) ── */
.prediction-widget {
    background: linear-gradient(135deg, rgba(123,47,247,0.08), rgba(255,45,85,0.04));
    border: 1px solid rgba(123,47,247,0.2);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}
.prediction-widget h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.prediction-widget h3 .icon {
    font-size: 1.4rem;
}
.prediction-widget .desc {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}
.prediction-widget .options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.prediction-widget .opt-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ddd;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.prediction-widget .opt-btn:hover {
    background: rgba(123,47,247,0.2);
    border-color: #7b2ff7;
    color: #fff;
}
.prediction-widget .opt-btn.voted {
    background: linear-gradient(135deg, #7b2ff7, #9333ea);
    border-color: #7b2ff7;
    color: #fff;
    font-weight: 700;
}
.prediction-widget .results {
    margin-top: 0.75rem;
}
.prediction-widget .result-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    margin: 0.3rem 0;
    overflow: hidden;
}
.prediction-widget .result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b2ff7, #e040fb);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.prediction-widget .result-label {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

/* ── Vault Coin Card Styles ── */
.coin-hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(8,8,15,0.9));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.coin-hero .coin-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: coinSpin 3s ease-in-out infinite;
}
@keyframes coinSpin {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}
.coin-hero h1 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.coin-hero .tagline {
    color: var(--text-dim);
    font-size: 0.95rem;
}
.coin-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.coin-pack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}
.coin-pack:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}
.coin-pack.featured {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.coin-pack .pack-coins {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
}
.coin-pack .pack-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0;
}
.coin-pack .pack-bonus {
    color: var(--red-light);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.coin-pack .pack-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .preview-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .paywall-progress .progress-cta {
        justify-content: center;
    }
    .paywall-blur-cta {
        padding: 1rem;
    }
    .prediction-widget .options {
        flex-direction: column;
        align-items: center;
    }
    .coin-packages {
        grid-template-columns: 1fr;
    }
}
