/* Paywall and Content Restriction CTA Styles */

.rtf-paywall-cta-wrap {
    margin: 2rem 0;
    width: 100%;
}

.rtf-paywall-cta-inner {
    border: none;
    border-radius: var(--radius-md, 12px);
    padding: 3rem 2rem;
    text-align: center;
    background-color: #0c2756;
    box-shadow: 0 10px 25px -5px rgba(18, 62, 138, 0.3);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Beautiful padlock SVG styling */
.rtf-paywall-cta-inner svg {
    width: 54px;
    height: 54px;
    margin: 0 auto 1.5rem auto;
    display: block;
    color: #60a5fa; /* Modern glowing Blue */
    filter: drop-shadow(0 4px 10px rgba(96, 165, 250, 0.3));
    transition: transform 0.3s ease;
}

.rtf-paywall-cta-inner:hover svg {
    transform: translateY(-2px) scale(1.05);
}

/* Title text */
.rtf-paywall-cta-inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* Premium description text */
.rtf-paywall-cta-inner p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin: 0 auto 2rem auto;
    opacity: 0.95;
}

/* Buttons Container */
.rtf-paywall-cta-inner .flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Interactive custom styled buttons */
.rtf-paywall-cta-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9999px; /* Premium pill button shape */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

/* Login button: filled */
.rtf-paywall-cta-inner a:first-of-type {
    background-color: #ffffff;
    color: #123e8a !important;
    border: 1px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rtf-paywall-cta-inner a:first-of-type:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Register button: outline */
.rtf-paywall-cta-inner a:last-of-type {
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.rtf-paywall-cta-inner a:last-of-type:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Post single content fade out effect */
.rtf-paywall-content-restricted {
    position: relative;
    max-height: 650px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.rtf-paywall-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg-white, #ffffff) 100%);
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
body.dark-mode .rtf-paywall-cta-inner {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

body.dark-mode .rtf-paywall-cta-inner h3 {
    color: #ffffff;
}

body.dark-mode .rtf-paywall-cta-inner p {
    color: #9ca3af;
}

body.dark-mode .rtf-paywall-cta-inner svg {
    color: #60a5fa;
    filter: drop-shadow(0 4px 6px rgba(96, 165, 250, 0.2));
}

body.dark-mode .rtf-paywall-cta-inner a:first-of-type {
    background-color: #3b82f6; /* Premium vivid blue in dark mode */
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

body.dark-mode .rtf-paywall-cta-inner a:first-of-type:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}

body.dark-mode .rtf-paywall-cta-inner a:last-of-type {
    color: #9ca3af !important;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .rtf-paywall-cta-inner a:last-of-type:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #60a5fa;
    color: #ffffff !important;
}

body.dark-mode .rtf-paywall-fade {
    background: linear-gradient(180deg, rgba(32, 34, 37, 0) 0%, var(--bg-dark, #202225) 100%);
}

/* ============================================================
   RESPONSIVE LAYOUT FOR MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .rtf-paywall-cta-inner {
        padding: 2rem 1.5rem;
    }
    
    .rtf-paywall-cta-inner h3 {
        font-size: 1.25rem;
    }
    
    .rtf-paywall-cta-inner .flex {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .rtf-paywall-cta-inner a {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
}

/* ============================================================
   BLURRED & ABSOLUTE OVERLAY PATTERNS
   ============================================================ */
.border-block-box--blurred {
    filter: blur(2.5px) opacity(0.5);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.rtf-paywall-simple-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.rtf-paywall-simple-text-overlay p {
    margin: 0;
    padding: 0.75rem 1.5rem;
    background-color: #123e8a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px -5px rgba(18, 62, 138, 0.4);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.rtf-paywall-simple-text-overlay p svg {
    color: #93c5fd !important;
}

body.dark-mode .rtf-paywall-simple-text-overlay p {
    background-color: #0c2756;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

body.dark-mode .rtf-paywall-simple-text-overlay p svg {
    color: #60a5fa !important;
}

.rtf-paywall-simple-text-overlay a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 700;
    margin: 0 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.rtf-paywall-simple-text-overlay a:hover {
    color: #dbeafe !important;
    opacity: 0.95;
}

body.dark-mode .rtf-paywall-simple-text-overlay a {
    color: #ffffff !important;
}

body.dark-mode .rtf-paywall-simple-text-overlay a:hover {
    color: #93c5fd !important;
}
