/* =====================================================
 * EHFCV Waffo Pancake — front-end styles
 * Ported verbatim from waffop3 v11 (PHP snippet).
 * ===================================================== */

/* =====================================
 * Blur / reveal animation
 * ===================================== */

.gb-paid-blur { position: relative; overflow: hidden; min-height: 420px; }

.gb-paid-content {
    filter: blur(6px);
    pointer-events: none;
    transition: filter .7s ease;
}

.gb-paid-blur.gb-paid-revealed { min-height: 0; }

.gb-paid-blur.gb-paid-revealed .gb-paid-content {
    filter: none;
    pointer-events: auto;
}

.gb-paid-blur.gb-paid-revealed .gb-paid-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .55s ease, visibility 0s linear .55s;
}

/* =====================================
 * Overlay: centred / scrollable / above ads
 * ===================================== */

.gb-paid-overlay {
    position: absolute; inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
    z-index: 9999;
    box-sizing: border-box;
}

/* Suppress auto-ad slots injected inside the card */
.gb-paywall ins.adsbygoogle,
.gb-paywall > ins, .gb-paywall > iframe,
.gb-paywall-inner > ins, .gb-paywall-inner > iframe,
.gb-waffo-nopurchase ins, .gb-waffo-nopurchase iframe {
    display: none !important;
}

/* =====================================
 * Generic card (login wall / paywall)
 * ===================================== */

.gb-paid-overlay .gb-paywall {
    position: static;
    top: auto;
    margin: auto;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 30px 32px;
    text-align: center;
    max-width: 90%;
    min-width: 280px;
    box-shadow:
        0 1px 2px rgba(16,24,40,.04),
        0 16px 40px rgba(16,24,40,.10);
}

.gb-paywall h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #101828;
    letter-spacing: -.01em;
}

.gb-paywall p {
    margin: 0;
    color: #667085;
    font-size: .95rem;
    line-height: 1.55;
}

/* =====================================
 * Waffo paywall box
 * ===================================== */

.gb-waffo-paywall { min-height: 580px; }
.gb-waffo-paywall.gb-paid-revealed { min-height: 0; }

.gb-waffo-paywall .gb-paid-overlay .gb-waffo-paywall-box {
    position: static;
    top: auto;
    margin: auto;
    width: 100%;
    max-width: 400px;
    min-width: 0;
    padding: 32px 28px 28px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 1px 2px rgba(16,24,40,.04),
        0 16px 40px rgba(16,24,40,.10);
}

/* Hide lock badge */
.gb-waffo-paywall .gb-lock { display: none !important; }

/* =====================================
 * Primary purchase button (solid #3eaf7c)
 * hover: white fill + #3eaf7c→#009efd gradient border + dark text
 * ===================================== */

.gb-waffo-purchase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 22px;
    padding: 13px 24px;
    border: 3px solid transparent;
    border-radius: 12px;
    background-image:
        linear-gradient(#3eaf7c, #3eaf7c),
        linear-gradient(#3eaf7c, #3eaf7c);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: none;
}

.gb-waffo-purchase-btn:hover {
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #3eaf7c, #009efd);
    color: #101828 !important;
    box-shadow: none;
}

/* =====================================
 * Multi-product variant
 * Stacks buttons with a tighter gap; first (primary) keeps full
 * colour, others get an outlined look so the user can see options.
 * ===================================== */

.gb-waffo-purchase-btn-multi {
    margin-top: 14px;
    padding: 11px 22px;
}

.gb-waffo-purchase-btn-multi:not(.is-primary) {
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(#3eaf7c, #3eaf7c);
    color: #1f7a4d !important;
    border-color: #bfe6d2;
}

.gb-waffo-purchase-btn-multi:not(.is-primary):hover {
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #3eaf7c, #009efd);
    color: #101828 !important;
}

/* Hint line */

.gb-waffo-login-hint {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.6;
    color: #98a2b3;
}

.gb-waffo-paywall:has(.gb-waffo-nopurchase) .gb-waffo-login-hint { display: none; }
.gb-waffo-paywall:has(.gb-waffo-nudge) .gb-waffo-login-hint { display: none; }

/* =====================================
 * "Already purchased? Log in" block
 * ===================================== */

.gb-waffo-already {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #f2f4f7;
}

.gb-waffo-already-label {
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 10px;
    letter-spacing: .02em;
}

/* Login button (#009efd family, full width); register hidden */

.gb-paywall-buttons {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gb-paywall-buttons button {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 22px;
    border-radius: 12px;
    border: 1px solid #b8dcf9;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    background: #eaf5fe;
    color: #0277d0;
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.gb-paywall-buttons button:hover {
    background: #ddf1ff;
    border-color: #009efd;
    color: #0160b0;
}

.gb-paywall-buttons button.alt { display: none !important; }

/* =====================================
 * v11: Post-payment nudge (highlighted card)
 * ===================================== */

.gb-waffo-already.gb-waffo-nudge {
    margin-top: 22px;
    padding: 20px 18px 18px;
    background: linear-gradient(135deg, #fff8ec 0%, #ffefce 100%);
    border: 2px solid #f0c96a;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(240, 201, 106, .38);
    animation: gb-waffo-glow 2s ease-in-out infinite;
}

@keyframes gb-waffo-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(240, 201, 106, .38); }
    50%      { box-shadow: 0 10px 34px rgba(240, 201, 106, .70); }
}

.gb-waffo-already.gb-waffo-nudge .gb-waffo-already-label {
    font-size: 15px;
    font-weight: 700;
    color: #8a6116;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Nudge login button: solid blue, full width, larger */

.gb-waffo-already.gb-waffo-nudge .gb-paywall-buttons { margin-top: 0; }

.gb-waffo-already.gb-waffo-nudge .gb-paywall-buttons button {
    background: linear-gradient(135deg, #29a8ff, #009efd);
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 13px 22px;
    box-shadow: 0 6px 16px rgba(0, 158, 253, .35);
}

.gb-waffo-already.gb-waffo-nudge .gb-paywall-buttons button:hover {
    background: linear-gradient(135deg, #1b9bf5, #008ae0);
    color: #fff;
    border: none;
}

/* =====================================
 * Diagnostic / restore box (amber)
 * ===================================== */

.gb-waffo-nopurchase {
    margin-top: 22px;
    padding: 16px 16px 14px;
    background: #fffbf2;
    border: 1px solid #f3e3c3;
    border-radius: 14px;
    text-align: left;
    font-size: 13px;
    color: #7a5a1e;
}

.gb-waffo-nopurchase .np-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: #6b4e17;
}

.gb-waffo-nopurchase .np-email {
    text-align: center;
    font-size: 12px;
    color: #b08a45;
    margin-bottom: 10px;
    word-break: break-all;
}

.gb-waffo-nopurchase .np-desc {
    line-height: 1.65;
    margin-bottom: 12px;
}

.gb-waffo-nopurchase .np-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.gb-waffo-nopurchase .np-input {
    flex: 1 1 150px;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #e3d4b4;
    border-radius: 10px;
    font-size: 13px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.gb-waffo-nopurchase .np-input:focus {
    outline: none;
    border-color: #41b382;
    box-shadow: 0 0 0 3px rgba(65,179,130,.15);
}

.gb-waffo-nopurchase .np-btn {
    padding: 9px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, #41b382, #2f9e63);
    color: #fff;
    transition: box-shadow .18s ease;
}

.gb-waffo-nopurchase .np-btn:hover {
    box-shadow: 0 6px 14px rgba(65,179,130,.3);
}

.gb-waffo-nopurchase .np-btn.np-recheck {
    background: #fff;
    color: #1f7a4d;
    border: 1px solid #bfe6d2;
}

.gb-waffo-nopurchase .np-status {
    margin-top: 10px;
    min-height: 16px;
    text-align: center;
    font-size: 12px;
    color: #a97b2f;
}

/* =====================================
 * Success card (checkmark animation)
 * ===================================== */

.gb-waffo-paywall-box.is-success {
    background: linear-gradient(135deg, #43b581 0%, #2f9e63 60%, #27905a 100%);
    border: none;
    padding: 36px 28px 32px;
    box-shadow: 0 20px 44px rgba(47,158,99,.45);
    animation: gb-success-pop .55s cubic-bezier(.18,.89,.32,1.28);
}

@keyframes gb-success-pop {
    from { transform: scale(.92); opacity: .4; }
    to   { transform: scale(1);   opacity: 1; }
}

.gb-success-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 4px;
}

.gb-success-check svg { width: 100%; height: 100%; }

.gb-success-check .sc-circle {
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: sc-circle .7s ease forwards;
}

.gb-success-check .sc-mark {
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: sc-mark .45s ease .55s forwards;
}

@keyframes sc-circle { to { stroke-dashoffset: 0; } }
@keyframes sc-mark   { to { stroke-dashoffset: 0; } }

.gb-success-title {
    margin: 14px 0 6px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}

.gb-success-sub {
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    margin: 0;
}

/* =====================================
 * Persistent "unlocked" ribbon
 * ===================================== */

.gb-waffo-unlocked-ribbon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f0faf5, #e6f7ee);
    border: 1px solid #c9ecd9;
    border-radius: 12px;
    color: #1f7a4d;
    font-size: 13px;
    font-weight: 600;
    animation: ribbon-in .5s ease;
}

.gb-waffo-unlocked-ribbon .ur-dot {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    background: #2f9e63;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    flex: 0 0 auto;
}

@keyframes ribbon-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* =====================================
 * Viewport-level Toast (success=green / login nudge=blue)
 * ===================================== */

.gb-waffo-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 20px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3fb27f, #2f9e63);
    color: #fff;
    padding: 13px 26px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(47,158,99,.45);
    opacity: 0;
    z-index: 99999;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.gb-waffo-toast .gt-check {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.22);
    border-radius: 50%;
    font-size: 13px;
    flex: 0 0 auto;
}

.gb-waffo-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* v11: blue clickable variant (login nudge) */

.gb-waffo-toast.info {
    background: linear-gradient(135deg, #29a8ff, #009efd);
    box-shadow: 0 16px 40px rgba(0, 158, 253, .45);
    cursor: pointer;
    pointer-events: auto;
}

.gb-waffo-toast.info:hover {
    filter: brightness(1.06);
}

/* =====================================
 * Responsive
 * ===================================== */

@media (max-width: 600px) {
    .gb-paid-blur { min-height: 400px; }
    .gb-waffo-paywall { min-height: 520px; }
    .gb-waffo-paywall .gb-paid-overlay { padding: 16px 10px; }
    .gb-waffo-paywall .gb-paid-overlay .gb-waffo-paywall-box {
        max-width: 360px;
        padding: 26px 20px 24px;
    }
    .gb-waffo-toast { font-size: 14px; padding: 12px 20px; bottom: 20px; }
}

@media (max-height: 400px) {
    .gb-paid-overlay { align-items: flex-start; }
}

/* Reduced-motion users */

@media (prefers-reduced-motion: reduce) {
    .gb-success-check .sc-circle,
    .gb-success-check .sc-mark,
    .gb-waffo-paywall-box.is-success,
    .gb-waffo-unlocked-ribbon,
    .gb-waffo-already.gb-waffo-nudge {
        animation: none !important;
    }
}

/* Blocksy login modal */

#account-modal .ct-account-modal { border-radius: 20px !important; }
#account-modal .ct-panel-content { box-shadow: 0 18px 55px rgba(0,0,0,0.25); }

/* =====================================
 * v1.1: Subscription buttons section
 * ===================================== */

.gb-waffo-section-label {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #98a2b3;
    text-align: center;
}

.gb-waffo-sub-tier {
    margin-top: 12px;
    padding: 12px 14px 14px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafbfc;
    transition: border-color .18s ease, background .18s ease;
}

.gb-waffo-sub-tier:hover {
    border-color: #c9ecd9;
    background: #f0faf5;
}

.gb-waffo-sub-tier-name {
    font-size: 13px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 8px;
    text-align: center;
}

.gb-waffo-sub-tier-buttons {
    display: flex;
    gap: 8px;
}

.gb-waffo-sub-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border: 2px solid #3eaf7c;
    border-radius: 10px;
    background: #fff;
    color: #1f7a4d !important;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.gb-waffo-sub-btn:hover {
    background: #3eaf7c;
    color: #fff !important;
    border-color: #3eaf7c;
}

.gb-waffo-sub-btn-label {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
}

.gb-waffo-sub-btn-period {
    font-size: 11px;
    margin-top: 2px;
    opacity: .75;
}

/* Yearly variant — slightly different accent to highlight the saving */
.gb-waffo-sub-btn-year {
    border-color: #009efd;
    color: #0277d0 !important;
    background: #f5fbff;
}

.gb-waffo-sub-btn-year:hover {
    background: #009efd;
    color: #fff !important;
    border-color: #009efd;
}

/* Highlight the highest tier the post explicitly requires */
.gb-waffo-sub-tier[data-tier="3"] .gb-waffo-sub-tier-name {
    color: #6b4e17;
}

@media (max-width: 480px) {
    .gb-waffo-sub-tier-buttons {
        flex-direction: column;
    }
}
