/* ═══════════════════════════════════════════
   wspieram.css — Styl strony zakupu rangi Wspieram
   Design: Biedronka (owad) — czerwono-czarny
   ═══════════════════════════════════════════ */

/* === LADYBUG BACKGROUND === */
.wspieram-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0000 0%, #2d0a0a 30%, #1a1a1a 100%);
    position: relative;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   LIGHT MODE — kompletne style jasne
   ═══════════════════════════════════════ */

/* Tło strony */
html:not(.dark) .wspieram-page {
    background: linear-gradient(135deg, #fff0f0 0%, #fde8e8 40%, #f5f5f5 100%);
}

/* Kropki w tle — ledwo widoczne */
html:not(.dark) .wspieram-page::before { opacity: 0.04; }

/* Biedronki — subtelne */
html:not(.dark) .wspieram-ladybug { opacity: 0.12; filter: grayscale(30%); }

/* Nawigacja — jasna wersja */
html:not(.dark) .wspieram-nav {
    background: rgba(255,255,255,0.92);
    border-bottom-color: rgba(227,6,19,0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
html:not(.dark) .wspieram-nav-back {
    color: #4b5563;
}
html:not(.dark) .wspieram-nav-back:hover { color: #E30613; }

/* Przycisk dark mode w navie — jasny */
html:not(.dark) #wspieramDarkBtn {
    background: rgba(0,0,0,0.06) !important;
    color: #374151 !important;
}
html:not(.dark) #wspieramDarkBtn:hover {
    background: rgba(0,0,0,0.12) !important;
}

/* Hero — zachowujemy ciemne tło bo jest gradient czerwony, tylko delikatniejszy cień */
html:not(.dark) .wspieram-hero {
    box-shadow: 0 16px 50px rgba(227,6,19,0.25);
}

/* Price card */
html:not(.dark) .wspieram-price {
    background: #ffffff;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 20px rgba(227,6,19,0.08);
}
html:not(.dark) .wspieram-price-amount {
    color: #E30613;
}
html:not(.dark) .wspieram-price-amount small {
    color: #6b7280;
}
html:not(.dark) .wspieram-price-period {
    color: #6b7280;
}
html:not(.dark) .wspieram-price-subtitle {
    color: #4b5563;
}
html:not(.dark) .wspieram-price-subtitle i { color: #E30613; }

/* Availability bar */
html:not(.dark) .wspieram-availability {
    background: #ffffff;
    border: 1px solid #fecaca;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
html:not(.dark) .wspieram-availability-label { color: #4b5563; }
html:not(.dark) .wspieram-availability-bar { background: #f3f4f6; }
html:not(.dark) .wspieram-availability-count { color: #b91c1c; font-weight: 800; }
html:not(.dark) #wspieramAvailText { color: #6b7280 !important; }

/* Benefits */
html:not(.dark) .wspieram-benefits {
    background: #ffffff;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
html:not(.dark) .wspieram-benefits h3 {
    color: #111827;
}
html:not(.dark) .wspieram-benefits h3 i { color: #E30613; }
html:not(.dark) .wspieram-benefit-item {
    border-bottom-color: #f3f4f6;
}
html:not(.dark) .wspieram-benefit-icon {
    background: rgba(227,6,19,0.08);
}
html:not(.dark) .wspieram-benefit-icon i { color: #E30613; }
html:not(.dark) .wspieram-benefit-text {
    color: #374151;
}
html:not(.dark) .wspieram-benefit-text strong { color: #111827; }

/* Login prompt */
html:not(.dark) .wspieram-login-prompt {
    background: #ffffff;
    border: 1px solid #fecaca;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
html:not(.dark) .wspieram-login-prompt p { color: #4b5563; }
html:not(.dark) .wspieram-login-link {
    color: #E30613;
}
html:not(.dark) .wspieram-login-link:hover { color: #b91c1c; }

/* Gwarancja */
html:not(.dark) .wspieram-guarantee { color: #6b7280; }
html:not(.dark) .wspieram-guarantee i { color: #10b981; }

/* Stopka */
html:not(.dark) .wspieram-footer { color: #9ca3af; }
html:not(.dark) .wspieram-footer a { color: #6b7280; }
html:not(.dark) .wspieram-footer a:hover { color: #E30613; }

/* Karty sukcesu i anulowania */
html:not(.dark) .wspieram-success-card {
    background: #ffffff;
    border-color: rgba(16,185,129,0.35);
    box-shadow: 0 8px 30px rgba(16,185,129,0.1);
}
html:not(.dark) .wspieram-cancel-card {
    background: #ffffff;
    border-color: rgba(245,158,11,0.35);
    box-shadow: 0 8px 30px rgba(245,158,11,0.1);
}
/* Teksty w kartach sukces/anuluj */
html:not(.dark) .wspieram-success-card h2,
html:not(.dark) .wspieram-cancel-card h2 {
    color: #111827 !important;
}
html:not(.dark) .wspieram-success-card > p,
html:not(.dark) .wspieram-cancel-card > p {
    color: #4b5563 !important;
}
/* Wewnętrzna sekcja korzyści na stronie sukcesu */
html:not(.dark) .wspieram-success-card [style*="rgba(255,255,255,0.06)"] {
    background: #f9fafb !important;
}
html:not(.dark) .wspieram-success-card [style*="color:rgba(255,255,255,0.8)"] {
    color: #374151 !important;
}
html:not(.dark) .wspieram-success-card [style*="color:rgba(255,255,255,0.5)"],
html:not(.dark) .wspieram-cancel-card [style*="color:rgba(255,255,255,0.5)"] {
    color: #6b7280 !important;
}
html:not(.dark) .wspieram-success-card [style*="color:rgba(255,255,255,0.7)"] {
    color: #4b5563 !important;
}
html:not(.dark) .wspieram-cancel-card [style*="color:rgba(255,255,255,0.7)"] {
    color: #4b5563 !important;
}
html:not(.dark) .wspieram-success-card [style*="color:white;font-weight:800;font-size:0.9rem"] h4,
html:not(.dark) .wspieram-success-card h4 {
    color: #111827 !important;
}
/* Hero desc - zachoi czytelność bo hero tło jest ciemne */
html:not(.dark) .wspieram-hero-desc {
    color: rgba(255,255,255,0.88);
}
.wspieram-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle 60px at 10% 15%, rgba(0,0,0,0.5) 48%, transparent 50%),
        radial-gradient(circle 45px at 85% 25%, rgba(0,0,0,0.4) 48%, transparent 50%),
        radial-gradient(circle 35px at 20% 75%, rgba(0,0,0,0.35) 48%, transparent 50%),
        radial-gradient(circle 55px at 75% 65%, rgba(0,0,0,0.45) 48%, transparent 50%),
        radial-gradient(circle 25px at 50% 45%, rgba(0,0,0,0.3) 48%, transparent 50%),
        radial-gradient(circle 40px at 92% 85%, rgba(0,0,0,0.4) 48%, transparent 50%),
        radial-gradient(circle 30px at 5% 50%, rgba(0,0,0,0.3) 48%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* === MAIN CONTAINER === */
.wspieram-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* === NAV BAR === */
.wspieram-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(26,0,0,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(227,6,19,0.3);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wspieram-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}
.wspieram-nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.wspieram-nav-logo span {
    font-weight: 900;
    font-size: 1rem;
    color: #E30613;
}
.wspieram-nav-back {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}
.wspieram-nav-back:hover { color: #FFD500; }

/* === HERO CARD === */
.wspieram-hero {
    margin-top: 5rem;
    background: linear-gradient(135deg, #E30613 0%, #b91c1c 40%, #7f1d1d 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(227,6,19,0.35);
}
.wspieram-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,213,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.wspieram-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.wspieram-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    animation: wspieramPulse 2s ease-in-out infinite;
}
.wspieram-hero-icon i {
    font-size: 2.2rem;
    color: #FFD500;
}
@keyframes wspieramPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,213,0,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 8px rgba(255,213,0,0.15); }
}
.wspieram-hero h1 {
    color: white;
    font-weight: 900;
    font-size: 2rem;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}
.wspieram-hero h1 span { color: #FFD500; }
.wspieram-hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === PRICE CARD === */
.wspieram-price {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1.5rem;
    text-align: center;
}
.wspieram-price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD500;
    line-height: 1;
}
.wspieram-price-amount small {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.wspieram-price-period {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.wspieram-price-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.wspieram-price-subtitle i { color: #FFD500; }

/* === AVAILABILITY BAR === */
.wspieram-availability {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}
.wspieram-availability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.wspieram-availability-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 600;
}
.wspieram-availability-count {
    color: #FFD500;
    font-size: 0.85rem;
    font-weight: 800;
}
.wspieram-availability-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.wspieram-availability-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #10b981, #FFD500);
    transition: width 0.8s ease;
}
.wspieram-availability-fill.low {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.wspieram-availability-fill.empty {
    background: #ef4444;
}

/* === BENEFITS === */
.wspieram-benefits {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.75rem;
    margin-top: 1.5rem;
}
.wspieram-benefits h3 {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wspieram-benefits h3 i { color: #FFD500; }
.wspieram-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wspieram-benefit-item:last-child { border-bottom: none; }
.wspieram-benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,213,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wspieram-benefit-icon i {
    font-size: 0.9rem;
    color: #FFD500;
}
.wspieram-benefit-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}
.wspieram-benefit-text strong { color: white; }

/* === BUY BUTTON === */
.wspieram-buy-section {
    margin-top: 2rem;
    text-align: center;
}
.wspieram-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFD500 0%, #f59e0b 100%);
    color: #1a1a1a;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(255,213,0,0.35);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.wspieram-buy-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255,213,0,0.5);
}
.wspieram-buy-btn:active {
    transform: translateY(-1px) scale(0.98);
}
.wspieram-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.wspieram-buy-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(0,0,0,0.2);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wspieram-login-prompt {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 2rem;
    text-align: center;
}
.wspieram-login-prompt p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}
.wspieram-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #FFD500;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.wspieram-login-link:hover { color: #fbbf24; }

/* === GUARANTEE === */
.wspieram-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}
.wspieram-guarantee i { color: #10b981; }

/* === FOOTER INFO === */
.wspieram-footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}
.wspieram-footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
.wspieram-footer a:hover { color: #FFD500; }

/* === SUCCESS PAGE === */
.wspieram-success-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
}
.wspieram-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successBounce 0.6s ease;
}
@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.wspieram-success-icon i { font-size: 2rem; color: white; }

/* === CANCEL PAGE === */
.wspieram-cancel-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
}
.wspieram-cancel-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.wspieram-cancel-icon i { font-size: 2rem; color: white; }

/* === FLOATING LADYBUGS === */
.wspieram-ladybug {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    font-size: 1.5rem;
    opacity: 0.35;
    animation: floatBug 15s ease-in-out infinite;
}
.wspieram-ladybug:nth-child(2) { animation-delay: -5s; animation-duration: 18s; }
.wspieram-ladybug:nth-child(3) { animation-delay: -10s; animation-duration: 22s; }
@keyframes floatBug {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -80px) rotate(90deg); }
    50% { transform: translate(-30px, -150px) rotate(180deg); }
    75% { transform: translate(60px, -60px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* === BANNER (for index.php) === */
.wspieram-banner {
    background: linear-gradient(135deg, #E30613 0%, #b91c1c 50%, #7f1d1d 100%);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(227,6,19,0.3);
    flex-wrap: wrap;
}
.wspieram-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 20px at 15% 30%, rgba(0,0,0,0.25) 48%, transparent 50%),
        radial-gradient(circle 15px at 60% 70%, rgba(0,0,0,0.2) 48%, transparent 50%),
        radial-gradient(circle 12px at 85% 20%, rgba(0,0,0,0.2) 48%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
}
.wspieram-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.wspieram-banner-heart {
    font-size: 1.5rem;
    animation: wspieramPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.wspieram-banner-text h4 {
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
}
.wspieram-banner-text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    margin: 0;
}
.wspieram-banner-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FFD500;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,213,0,0.3);
}
.wspieram-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,213,0,0.45);
    background: #fbbf24;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .wspieram-hero { padding: 1.75rem 1.25rem; }
    .wspieram-hero h1 { font-size: 1.5rem; }
    .wspieram-hero-desc { font-size: 0.88rem; }
    .wspieram-price-amount { font-size: 2.5rem; }
    .wspieram-benefits { padding: 1.25rem; }
    .wspieram-buy-btn { padding: 0.85rem 2rem; font-size: 1rem; width: 100%; justify-content: center; }
    .wspieram-container { padding: 1rem 0.75rem; }
    .wspieram-banner { flex-direction: column; text-align: center; padding: 1rem; }
    .wspieram-banner-content { justify-content: center; }
    .wspieram-banner-btn { width: 100%; justify-content: center; }
}
