/* ════════════════════════════════════════════
   WebFlames Whitepapers — Frontend Styles
   ════════════════════════════════════════════ */

:root {
    --wf-primary: #1a1f2e;
    --wf-accent: #e63946;
    --wf-accent-light: #ff6b6b;
    --wf-gold: #f4a261;
    --wf-text: #2d3748;
    --wf-text-muted: #718096;
    --wf-bg: #f8f9fc;
    --wf-white: #ffffff;
    --wf-border: #e2e8f0;
    --wf-shadow: 0 4px 24px rgba(26, 31, 46, 0.10);
    --wf-shadow-lg: 0 12px 48px rgba(26, 31, 46, 0.18);
    --wf-radius: 14px;
    --wf-radius-sm: 8px;
}

/* ── Page Layout ── */
.wf-whitepaper-page {
    
    background: var(--wf-bg);
    font-family: 'Georgia', serif;
}

/* ── HERO ── */
.wf-wp-hero {
    position: relative;
    background: #333;
    color: var(--wf-white);
    padding: 300px 80px 80px 70px;
    overflow: hidden;
    font-family: 'Poppins';
}
.wf-wp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.wf-wp-badge {
    display: inline-block;
    background: #333!important;
    color: #fff;
    font-family: 'system-ui', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.wf-wp-title {
    font-size: clamp(26px, 5vw, 48px);
    font-weight: 600!important;
    line-height: 1.2;
    color: #fff!important;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.wf-wp-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-family: 'system-ui', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.wf-wp-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wf-wp-meta svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

.wf-wp-locked-badge {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55 !important;
    border: 1px solid rgba(246, 173, 85, 0.4);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
}

.wf-wp-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    max-width: 620px;
    margin: 0 auto 28px;
}

/* ── Hero PDF Button ── */
.wf-hero-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fbd721;
    color: #000 !important;
    text-decoration: none !important;
    font-family: 'system-ui', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 100px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    letter-spacing: 0.3px;
}

.wf-hero-pdf-btn:hover {
    background: #fbd721;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(230, 57, 70, 0.5);
}

.wf-hero-pdf-btn svg {
    width: 17px;
    height: 17px;
}

.wf-hero-pdf-btn.wf-btn-locked {
    background: #5e5e5c;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    color: #fff !important;
}

.wf-hero-pdf-btn.wf-btn-locked:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    transform: none;
}

/* ── Decorative shapes ── */
.wf-hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: #fff;
}

.wf-shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.wf-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: -60px;
}

/* ── Body ── */
.wf-wp-body {
    padding: 60px 24px 80px;
}

.wf-wp-container {
    max-width: 820px;
    margin: 0 auto;
}

/* ════════════════════════════════════════════
   GATE / LOCKED STATE
════════════════════════════════════════════ */
.wf-gate-wrapper {
    margin-bottom: 40px;
    animation: wf-slide-up 0.4s ease forwards;
}

@keyframes wf-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wf-gate-card {
    background: var(--wf-white);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    padding: 48px 40px;
    box-shadow: var(--wf-shadow-lg);
    text-align: center;
}

.wf-gate-icon-wrap {
    margin-bottom: 20px;
}

.wf-gate-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3561 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(26, 31, 46, 0.25);
}

.wf-gate-lock-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

.wf-gate-heading {
    font-family: 'system-ui', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--wf-primary);
    margin: 0 0 10px;
}

.wf-gate-subtext {
    font-family: 'system-ui', sans-serif;
    font-size: 14px;
    color: var(--wf-text-muted);
    margin: 0 0 32px;
}

.wf-gate-form-wrap {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

/* MetForms overrides inside gate */
.wf-gate-form-wrap .metform-form .mf-input,
.wf-gate-form-wrap .metform-form input[type="text"],
.wf-gate-form-wrap .metform-form input[type="email"],
.wf-gate-form-wrap .metform-form input[type="tel"] {
    border: 1.5px solid var(--wf-border) !important;
    border-radius: var(--wf-radius-sm) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
}

.wf-gate-form-wrap .metform-form input:focus {
    border-color: var(--wf-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1) !important;
}

.wf-gate-form-wrap .metform-form button[type="submit"],
.wf-gate-form-wrap .metform-form input[type="submit"] {
    background: var(--wf-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 13px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.wf-gate-form-wrap .metform-form button[type="submit"]:hover,
.wf-gate-form-wrap .metform-form input[type="submit"]:hover {
    background: #c62a37 !important;
    transform: translateY(-1px) !important;
}

.wf-gate-no-form {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--wf-radius-sm);
    padding: 16px;
    font-family: 'system-ui', sans-serif;
    font-size: 13px;
    color: #856404;
}

/* ── Blurred Preview ── */
.wf-content-blurred {
    position: relative;
    overflow: hidden;
    border-radius: var(--wf-radius);
    max-height: 280px;
    pointer-events: none;
    user-select: none;
}

.wf-content-inner {
    filter: blur(5px);
    opacity: 0.5;
    padding: 32px;
    background: var(--wf-white);
}

.wf-blur-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 10%, rgba(248,249,252,0.95) 60%, var(--wf-bg) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
    font-family: 'system-ui', sans-serif;
    font-size: 13px;
    color: var(--wf-text-muted);
    font-style: italic;
}

/* ── Unlocked State ── */
.wf-unlock-notice {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
    border-radius: var(--wf-radius-sm);
    padding: 12px 20px;
    font-family: 'system-ui', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 32px;
    display: block;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.wf-content-full {
   
}

.wf-content-full h2 { font-size: 26px; margin: 36px 0 14px; color: var(--wf-primary); }
.wf-content-full h3 { font-size: 20px; margin: 28px 0 10px; color: var(--wf-primary); }
.wf-content-full p  { margin: 0 0 18px; }
.wf-content-full ul,
.wf-content-full ol { margin: 0 0 18px; padding-left: 24px; }
.wf-content-full li { margin-bottom: 8px; }
.wf-content-full img { max-width: 100%; border-radius: var(--wf-radius-sm); }
.wf-content-full a { color: var(--wf-accent); text-decoration: underline; }

/* ── Inline PDF button (shortcode) ── */
.wf-pdf-btn-wrap { margin-bottom: 28px; }

.wf-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--wf-primary);
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'system-ui', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 100px;
    transition: all 0.22s ease;
}

.wf-pdf-btn:hover {
    background: var(--wf-accent);
    transform: translateY(-1px);
}

.wf-pdf-btn svg { width: 16px; height: 16px; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .wf-gate-card { padding: 32px 20px; }
    .wf-content-full { padding: 28px 20px; }
    .wf-wp-hero { padding: 50px 20px 50px; }
}
