/* PositionPay Partner Portal — scoped styles for WordPress */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

body.positionpay-partner-portal-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #020617 !important;
    overflow-x: hidden;
}

body.positionpay-partner-portal-page #page,
body.positionpay-partner-portal-page .site,
body.positionpay-partner-portal-page .site-content,
body.positionpay-partner-portal-page main,
body.positionpay-partner-portal-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.admin-bar.positionpay-partner-portal-page #positionpay-partner-portal nav#navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.positionpay-partner-portal-page #positionpay-partner-portal nav#navbar {
        top: 46px;
    }
}

#positionpay-partner-portal {
    color: #fff;
    background-color: #020617;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

        :root {
            --pp-purple: #6B2D8B;
            --pp-green: #00C853;
            --pp-green-hover: #00b34a;
        }

        #positionpay-partner-portal { font-family: 'Inter', system-ui, sans-serif; }
        .logo-font { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.03em; }
        .pp-green { color: var(--pp-green); }
        .bg-pp-green { background-color: var(--pp-green); }
        .border-pp-green { border-color: var(--pp-green); }

        .hero-bg {
            background: radial-gradient(at center, #1e1135 0%, #0f0a1f 70%);
            position: relative;
            overflow: hidden;
        }
        .hero-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.35;
            animation: orb-float 12s ease-in-out infinite;
            pointer-events: none;
        }
        .hero-orb-1 { width: 420px; height: 420px; background: var(--pp-purple); top: -10%; left: 10%; }
        .hero-orb-2 { width: 320px; height: 320px; background: var(--pp-green); bottom: 5%; right: 5%; animation-delay: -4s; }
        .hero-orb-3 { width: 200px; height: 200px; background: #4C1D95; top: 40%; right: 30%; animation-delay: -8s; }

        @keyframes orb-float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -20px) scale(1.05); }
            66% { transform: translate(-20px, 15px) scale(0.95); }
        }

        .energy-gradient {
            background: linear-gradient(135deg, #a78bfa 0%, var(--pp-green) 50%, #6ee7b7 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .animated-gradient {
            background: linear-gradient(270deg, var(--pp-purple), #7C3AED, var(--pp-green), #16A34A, var(--pp-purple));
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient-move 6s ease infinite;
        }
        @keyframes gradient-move {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .fintech-gradient {
            background: linear-gradient(135deg, var(--pp-purple) 0%, #1e1135 40%, #0f5132 100%);
        }

        .ticker { overflow: hidden; white-space: nowrap; width: 100%; }
        .ticker-content { display: inline-flex; animation: ticker-slide 35s linear infinite; }
        @keyframes ticker-slide {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .premium-card { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
        .premium-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 40px -10px rgba(0, 200, 83, 0.15);
            border-color: rgba(0, 200, 83, 0.3);
        }

        .cta-pulse { animation: cta-glow 2.5s ease-in-out infinite; }
        @keyframes cta-glow {
            0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5), 0 10px 30px -5px rgba(0, 200, 83, 0.3); }
            50% { box-shadow: 0 0 0 12px rgba(0, 200, 83, 0), 0 10px 40px -5px rgba(0, 200, 83, 0.5); }
        }

        .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
        .reveal.visible { opacity: 1; transform: translateY(0); }
        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }

        .partner-card { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
        .partner-card:hover, .partner-card.active {
            transform: scale(1.02);
            border-color: rgba(0, 200, 83, 0.6);
            box-shadow: 0 0 30px rgba(0, 200, 83, 0.15);
        }
        .partner-card.active {
            background: linear-gradient(135deg, rgba(107, 45, 139, 0.35) 0%, rgba(0, 200, 83, 0.1) 100%);
        }

        .timeline-step .timeline-period { color: rgb(100 116 139); }
        .timeline-step .timeline-label { color: rgb(203 213 225); }
        .timeline-step.active .timeline-dot {
            background: var(--pp-green);
            box-shadow: 0 0 0 6px rgba(0, 200, 83, 0.25), 0 0 20px rgba(0, 200, 83, 0.4);
        }
        .timeline-step.active .timeline-period { color: var(--pp-green); }
        .timeline-step.active .timeline-label { color: var(--pp-green); }
        .timeline-step.active { border-color: rgba(0, 200, 83, 0.35) !important; }

        .calc-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            border-radius: 999px;
            background: linear-gradient(90deg, #334155 var(--pct, 30%), var(--pp-green) var(--pct, 30%));
            outline: none;
        }
        .calc-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--pp-green);
            cursor: pointer;
            box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.3);
        }

        .form-input {
            width: 100%;
            background: rgb(30 41 59);
            border: 1px solid rgb(51 65 85);
            border-radius: 1rem;
            padding: 0.875rem 1.25rem;
            color: white;
        }
        .form-input:focus { outline: none; border-color: var(--pp-green); }

        .sticky-cta { transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
        .sticky-cta.show { transform: translateY(0); }

        .count-up { font-variant-numeric: tabular-nums; }

        .code-block {
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 1rem;
            font-family: ui-monospace, monospace;
            font-size: 0.75rem;
            line-height: 1.6;
        }

        .faq-item.open .faq-chevron { transform: rotate(180deg); }
        .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
        .faq-item.open .faq-answer { max-height: 280px; }

/* --- Dynamic scrolling & interface refinements --- */

#pp-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 60;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--pp-purple), var(--pp-green));
    pointer-events: none;
}

body.admin-bar.positionpay-partner-portal-page #pp-scroll-progress { top: 32px; }

#positionpay-partner-portal nav#navbar .flex.h-24,
#positionpay-partner-portal nav#navbar img {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#positionpay-partner-portal nav#navbar.pp-nav-compact .flex.h-24 { height: 4rem; }
#positionpay-partner-portal nav#navbar.pp-nav-compact img { height: 3.5rem; }

#pp-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    z-index: 45;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgb(51 65 85);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#pp-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#pp-back-to-top:hover { color: #fff; border-color: rgba(0, 200, 83, 0.5); box-shadow: 0 0 18px rgba(0, 200, 83, 0.2); }

#positionpay-partner-portal #partner-modal > div {
    animation: pp-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pp-modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#positionpay-partner-portal .ticker:hover .ticker-content { animation-play-state: paused; }

.pp-platform-swap { animation: pp-platform-in 0.35s ease; }
@keyframes pp-platform-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#positionpay-partner-portal :is(button, a, input, select, textarea, .faq-item):focus-visible {
    outline: 2px solid var(--pp-green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #positionpay-partner-portal .hero-orb,
    #positionpay-partner-portal .ticker-content,
    #positionpay-partner-portal .cta-pulse,
    #positionpay-partner-portal .animated-gradient,
    #positionpay-partner-portal #partner-modal > div,
    .pp-platform-swap {
        animation: none !important;
    }
    #positionpay-partner-portal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #positionpay-partner-portal .premium-card,
    #positionpay-partner-portal .partner-card,
    #positionpay-partner-portal .sticky-cta,
    #pp-back-to-top,
    #positionpay-partner-portal nav#navbar .flex.h-24,
    #positionpay-partner-portal nav#navbar img {
        transition: none;
    }
}
