/**
 * Premium Content / Paywall Styles
 * Styles for content gating and subscription paywalls
 */

/* =====================================================
   CONTENT LOCK CONTAINERS
   ===================================================== */

.premium-content-lock {
    position: relative;
    margin: 20px 0;
}

.premium-content-lock .lock-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.premium-content-lock .lock-icon {
    color: #f26122;
    margin-bottom: 15px;
}

.premium-content-lock .lock-icon i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.premium-content-lock h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.premium-content-lock p {
    color: #666;
    margin-bottom: 20px;
}

/* =====================================================
   PARTIAL LOCK (TEASER WITH FADE)
   ===================================================== */

.partial-lock {
    position: relative;
}

.partial-lock .content-fade-overlay {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.partial-lock .lock-container {
    position: relative;
    z-index: 2;
    margin-top: -50px;
    padding-top: 60px;
}

/* =====================================================
   FULL LOCK
   ===================================================== */

.full-lock .lock-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.full-lock .lock-icon i {
    font-size: 4rem;
    color: #6c757d;
}

.full-lock h3 {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* =====================================================
   PREVIEW LOCK
   ===================================================== */

.preview-lock .lock-container {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 40px 20px;
}

.preview-lock .text-muted {
    font-size: 0.95rem;
}

/* =====================================================
   SUBSCRIPTION OPTIONS IN PAYWALL
   ===================================================== */

.subscription-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.subscription-options .sub-option {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    transition: all 0.3s ease;
}

.subscription-options .sub-option:hover {
    border-color: #f26122;
    box-shadow: 0 4px 12px rgba(242, 97, 34, 0.15);
    transform: translateY(-2px);
}

.subscription-options .sub-option strong {
    display: block;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.subscription-options .sub-option .price {
    display: block;
    color: #f26122;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.subscription-options .sub-option .btn {
    width: 100%;
}

/* =====================================================
   PREMIUM BADGE / INDICATOR
   ===================================================== */

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f26122 0%, #ff8c42 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge i {
    font-size: 0.7rem;
}

.premium-badge.small {
    font-size: 0.65rem;
    padding: 2px 8px;
}

/* On blog cards */
.blog_box .premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

/* =====================================================
   TEASER CONTENT STYLING
   ===================================================== */

.content-teaser {
    position: relative;
}

.content-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
}

/* =====================================================
   SUBSCRIBE BUTTON STYLES
   ===================================================== */

.btn-subscribe {
    background: linear-gradient(135deg, #f26122 0%, #ff8c42 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #e05515 0%, #f26122 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 97, 34, 0.3);
}

.btn-subscribe i {
    margin-right: 8px;
}

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

@media (max-width: 768px) {
    .premium-content-lock .lock-container {
        padding: 20px 15px;
    }

    .subscription-options {
        flex-direction: column;
        align-items: center;
    }

    .subscription-options .sub-option {
        width: 100%;
        max-width: 300px;
    }

    .partial-lock .content-fade-overlay {
        height: 100px;
    }
}

/* =====================================================
   ANIMATION
   ===================================================== */

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.premium-content-lock .lock-icon i {
    animation: lockPulse 2s ease-in-out infinite;
}

/* =====================================================
   BLOG LIST PREMIUM INDICATORS
   ===================================================== */

.blog_box.is-premium {
    position: relative;
    border-left: 3px solid #f26122;
}

.blog_box.is-premium .media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(242, 97, 34, 0.1) 0%,
        rgba(255, 140, 66, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}
