/* ==========================================================================
   plus-paywall.css — Konto Plus paywall
   Styles for locked post placeholders, modal CTA, plus landing, banner.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Locked post card (rendered for free users beyond top-20 / past page 1).
   -------------------------------------------------------------------------- */
.post.is-locked,
.feed-card--locked {
    position: relative;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.post.is-locked:hover,
.feed-card--locked:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post.is-locked .post-locked-body {
    position: relative;
    min-height: 120px;
    padding: 1rem 1.25rem 2.5rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 1) 70%);
}

.post.is-locked .post-locked-shimmer {
    height: .6rem;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-radius: 4px;
    margin: 0 0 .5rem;
    opacity: .5;
}
.post.is-locked .post-locked-shimmer--short { width: 60%; }
.post.is-locked .post-locked-shimmer--medium { width: 85%; }
.post.is-locked .post-locked-shimmer--full { width: 100%; }

.post.is-locked .plus-overlay {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    background: #1a202c;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none; /* card handles click */
}

.post.is-locked .plus-overlay svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --------------------------------------------------------------------------
   Page-1 hint banner: "Masz dostęp tylko do 20 postów — aktywuj Plus".
   -------------------------------------------------------------------------- */
.plus-more-locked-banner {
    margin: 1.5rem 0 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #D9F0FB 0%, #4FBEEC 100%);
    border: 1px solid #27A3DC;
    border-radius: 12px;
    text-align: center;
    color: #0B1F3A;
}

.plus-more-locked-banner h3 {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.plus-more-locked-banner p {
    margin: 0 0 .75rem;
    font-size: .9rem;
}

.plus-more-locked-banner .btn-activate {
    display: inline-block;
    padding: .55rem 1.25rem;
    background: #1a202c;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s ease;
}

.plus-more-locked-banner .btn-activate:hover {
    background: #2d3748;
}

/* --------------------------------------------------------------------------
   Paywall modal (CTA when user clicks locked content / data-plus-gate).
   -------------------------------------------------------------------------- */
.plus-paywall-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: paywall-fade-in .18s ease;
}

@keyframes paywall-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.plus-paywall-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 2rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: paywall-slide-up .22s ease;
}

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

.plus-paywall-modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    padding: .25rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.plus-paywall-modal__close:hover {
    background: #f1f5f9;
    color: #475569;
}

.plus-paywall-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4FBEEC 0%, #27A3DC 100%);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 6px 16px rgba(39, 163, 220, 0.25);
}

.plus-paywall-modal__title {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.plus-paywall-modal__subtitle {
    margin: 0 0 1.5rem;
    color: #475569;
    font-size: .95rem;
    text-align: center;
    line-height: 1.5;
}

.plus-paywall-modal__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.plus-paywall-modal__benefits li {
    padding: .4rem 0 .4rem 1.75rem;
    position: relative;
    color: #1e293b;
    font-size: .9rem;
}

.plus-paywall-modal__benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: .4rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #D9F0FB;
    color: #1A86B8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
}

.plus-paywall-modal__actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.plus-paywall-modal__cta {
    display: block;
    text-align: center;
    padding: .85rem 1.25rem;
    background: #1a202c;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: background .15s;
}

.plus-paywall-modal__cta:hover {
    background: #2d3748;
}

.plus-paywall-modal__cancel {
    display: block;
    text-align: center;
    padding: .65rem 1rem;
    background: transparent;
    color: #64748b;
    border: 0;
    cursor: pointer;
    font-size: .9rem;
    text-decoration: underline;
}

/* ==========================================================================
   /plus/ landing page — landing-style, spójny wizualnie z core/landing.html.
   Wykorzystuje też istniejące klasy z landing.css (landing-section,
   landing-section__heading, btn-cta--primary/ghost/lg, landing-stat).
   ========================================================================== */

/* HERO with green→gold gradient (Plus brand color) */
.plus-hero {
    position: relative;
    padding: 5rem 1rem 4rem;
    background: linear-gradient(135deg, #4FBEEC 0%, #27A3DC 50%, #1A86B8 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.plus-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    background:
        radial-gradient(circle at 50% 110%, rgba(11, 31, 58, 0.12) 0, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

.plus-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.plus-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #FBE08C;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.plus-hero__eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F4BD37;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.plus-hero__title {
    margin: 1rem 0 .75rem;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.plus-hero__title .hl {
    color: #F4BD37;
    text-shadow: 0 1px 2px rgba(11, 31, 58, 0.35);
}

.plus-hero__lead {
    margin: 0 auto 1.5rem;
    max-width: 640px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.plus-hero__status {
    display: inline-block;
    margin: 0 0 1.5rem;
    padding: .85rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1rem;
}

.plus-hero__price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 0 1.5rem;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.plus-hero__price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FBE08C;
}

.plus-hero__price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.plus-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 2rem;
}

.plus-hero .btn-cta--primary {
    background: #fff;
    color: #1A86B8;
    border: none;
}

.plus-hero .btn-cta--primary:hover {
    background: #D9F0FB;
    color: #1A86B8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.plus-hero .btn-cta--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(8px);
}

.plus-hero .btn-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
    transform: translateY(-1px);
}

.plus-hero__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.plus-hero__bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: .95rem;
    color: rgba(255, 255, 255, 0.88);
}

.plus-hero__bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F4BD37;
    font-weight: 700;
}

/* BENEFITS GRID */
.plus-benefits-section {
    background: #f8fafc;
    padding: 4rem 1rem;
}

.plus-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.plus-benefit-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.plus-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #27A3DC;
}

.plus-benefit-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #D9F0FB 0%, #4FBEEC 100%);
    color: #1A86B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.plus-benefit-card__title {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.plus-benefit-card__desc {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: .95rem;
}

/* PRICING CARD */
.plus-pricing-section {
    padding: 4rem 1rem;
    background: #fff;
}

.plus-pricing-card {
    max-width: 480px;
    margin: 2rem auto 0;
    background: #fff;
    border: 2px solid #27A3DC;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(39, 163, 220, 0.12);
    position: relative;
}

.plus-pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1A86B8 0%, #27A3DC 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    box-shadow: 0 4px 10px rgba(39, 163, 220, 0.3);
}

.plus-pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin: 1rem 0 1.5rem;
}

.plus-pricing-card__amount {
    font-size: 4rem;
    font-weight: 800;
    color: #1A86B8;
    line-height: 1;
}

.plus-pricing-card__currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A86B8;
}

.plus-pricing-card__period {
    font-size: 1rem;
    color: #64748b;
}

.plus-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    text-align: left;
}

.plus-pricing-card__features li {
    position: relative;
    padding: .5rem 0 .5rem 1.75rem;
    color: #1e293b;
}

.plus-pricing-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .55rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #D9F0FB;
    color: #1A86B8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
}

.plus-pricing-card__cta {
    width: 100%;
    margin: 0 0 1rem;
}

.plus-pricing-card__note {
    margin: 0;
    font-size: .85rem;
    color: #64748b;
    line-height: 1.5;
}

/* FAQ */
.plus-faq-section {
    padding: 4rem 1rem;
    background: #f8fafc;
}

.plus-faq-list {
    max-width: 720px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plus-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color .2s, box-shadow .2s;
}

.plus-faq-item:hover {
    border-color: #27A3DC;
}

.plus-faq-item[open] {
    border-color: #27A3DC;
    box-shadow: 0 4px 12px rgba(39, 163, 220, 0.08);
}

.plus-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.plus-faq-item summary::-webkit-details-marker {
    display: none;
}

.plus-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #27A3DC;
    transition: transform .2s ease;
}

.plus-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.plus-faq-item p {
    margin: 1rem 0 0;
    color: #475569;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   /plus/required.html page (full-page paywall, used by @require_plus views).
   -------------------------------------------------------------------------- */
.plus-required-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.plus-required-card {
    max-width: 560px;
    background: #fff;
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(39, 163, 220, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
}

.plus-required-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #1A86B8 0%, #27A3DC 100%);
    color: #fff;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 1.25rem;
    box-shadow: 0 4px 12px rgba(39, 163, 220, 0.25);
}

.plus-required-card h1 {
    color: #0f172a;
    margin: 0 0 .75rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.plus-required-lead {
    color: #475569;
    margin: 0 0 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.locked-post-teaser {
    background: #f1f5f9;
    padding: .75rem 1rem;
    border-radius: 8px;
    color: #475569;
    margin: 0 0 1rem;
    font-size: .9rem;
}

.plus-benefits {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    text-align: left;
}

.plus-required-card .plus-benefits li {
    padding: .55rem 0 .55rem 1.85rem;
    position: relative;
    color: #1e293b;
    font-size: .98rem;
    line-height: 1.5;
}

.plus-required-card .plus-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: .65rem;
    width: 1.35rem;
    height: 1.35rem;
    background: linear-gradient(135deg, #D9F0FB 0%, #4FBEEC 100%);
    color: #1A86B8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
}

.plus-cta-row {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin: 1.75rem 0 0;
    flex-wrap: wrap;
}

.plus-cta-row .btn {
    padding: .85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.plus-cta-row .btn-primary {
    background: linear-gradient(135deg, #1A86B8 0%, #27A3DC 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 163, 220, 0.25);
}

.plus-cta-row .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 163, 220, 0.35);
}

.plus-cta-row .btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.plus-cta-row .btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Account dropdown — Plus item badge.
   -------------------------------------------------------------------------- */
.menu-item-plus {
    position: relative;
}

.menu-item-badge--plus {
    background: #D9F0FB;
    color: #1A86B8;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: .7rem;
    margin-left: auto;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* --------------------------------------------------------------------------
   Anti-flash: hide locked content briefly while JS calculates paywall state.
   -------------------------------------------------------------------------- */
body.lm-paywall-pending [data-plus-gate] {
    opacity: 0.5;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Top-of-feed CTA banner — shown to anon + free users.
   -------------------------------------------------------------------------- */
.plus-feed-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #D9F0FB 0%, #4FBEEC 100%);
    border: 1px solid #27A3DC;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.25rem;
    color: #0B1F3A;
}

.plus-feed-banner__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A86B8;
    color: #fff;
    border-radius: 50%;
}

.plus-feed-banner__body {
    flex: 1;
    min-width: 0;
}

.plus-feed-banner__body strong {
    display: block;
    margin-bottom: 2px;
    font-size: .95rem;
}

.plus-feed-banner__body p {
    margin: 0;
    font-size: .85rem;
    color: #14294A;
    line-height: 1.4;
}

.plus-feed-banner__cta {
    flex-shrink: 0;
    display: inline-block;
    padding: .55rem 1.1rem;
    background: #1a202c;
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    transition: background .15s, transform .15s;
}

.plus-feed-banner__cta:hover {
    background: #2d3748;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .plus-feed-banner {
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }
}
