/*
Theme Name: ASG Warszawa Theme
Theme URI: http://asgwarszawa.pl
Author: GetOut Project
Description: Dedykowany motyw dla ASG Warszawa (Landing Page)
Version: 1.8
License: GNU General Public License v2 or later
*/

/* --- FIX NA PŁYWANIE STRONY NA BOKI (POPRAWIONY DLA STICKY) --- */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    /* Używamy clip, aby nie psuć position: sticky. Fallback dla starszych to hidden */
    overflow-x: hidden; 
    overflow-x: clip; 
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;

    /* --- GŁÓWNE TŁO (MORO) --- */
    background-color: #0a0a0a;

    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%),
        url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?q=80&w=2070&auto=format&fit=crop'); 

    /* Desktop: Parallax (Tło stoi) */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Mobile: Wyłączamy fixed, bo na telefonach tnie i skacze */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; 
    }
}

/* --- SEKCKA HERO: VIDEO / OBRAZEK --- */
.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ważne przy zoomie */
    z-index: -1;
    opacity: 0.4;
}

/* Nowość: Efekt Kena Burnsa (Pływanie zdjęcia/wideo) */
.video-bg video, 
.video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ken-burns 20s infinite alternate ease-in-out;
}

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); } /* Delikatny zoom */
}


/* --- RESZTA STYLI BEZ ZMIAN --- */

.text-shadow-neon {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #a1a1aa, 0 0 30px #a1a1aa, 0 0 40px #a1a1aa, 0 0 55px #a1a1aa, 0 0 75px #a1a1aa;
}

.text-shadow-hard {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

::-webkit-scrollbar {
    display: none;
}
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

/* Sekcje są przezroczyste */
.section-gradient {
    position: relative;
    background: transparent;
    /* Usunięto overflow-x: hidden stąd, bo może psuć sticky wewnątrz sekcji */
}

section + .section-gradient::before {
    content: none;
    display: none;
}

.gallery-item img {
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Formularze */
.calculator-checkbox {
    appearance: none;
    -webkit-appearance: none;
    height: 1.5rem;
    width: 1.5rem;
    min-width: 1.5rem;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.calculator-checkbox:checked {
    background-color: #52525b;
    border-color: #71717a;
}
.calculator-checkbox:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    line-height: 1;
}
.calculator-checkbox:focus {
    box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.5);
    outline: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: #71717a;
    box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.5);
}
.form-input.input-error {
    border-color: #ef4444;
}

.time-slot-btn {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.time-slot-btn:hover {
    background-color: #3f3f46;
}
.time-slot-btn.selected {
    background-color: #71717a;
    border-color: #a1a1aa;
    box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.5);
}
.time-slot-btn.disabled {
    background-color: #1f2937;
    border-color: #374151;
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: line-through;
}
.time-slot-btn.disabled:hover {
    background-color: #1f2937;
}

.calendar-day.available {
    background-color: #52525b;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.calendar-day.available:hover {
    background-color: #71717a;
}

.payment-radio-input {
    display: none;
}
.payment-radio-label {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}
.payment-radio-label:hover {
    border-color: #71717a;
}
.payment-radio-input:checked + .payment-radio-label {
    border-color: #a1a1aa;
    background-color: #3f3f46;
    box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.5);
}

/* Style wpisów */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #d1d5db; 
}

.post-content h2 {
    font-size: 1.875rem; 
    line-height: 2.25rem;
    font-weight: 900;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.post-content h3 {
    font-size: 1.5rem; 
    line-height: 2rem;
    font-weight: 700;
    color: #f4f4f5; 
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h4 {
    font-size: 1.25rem; 
    font-weight: 700;
    color: #e4e4e7; 
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content ul {
    list-style-type: none;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.post-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.post-content ul li::before {
    content: '➤'; 
    position: absolute;
    left: 0;
    color: #4ade80; 
    font-size: 0.8em;
    top: 0.2em;
}

.post-content ol {
    list-style-type: decimal;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: #d1d5db;
}
.post-content ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}
.post-content ol li::marker {
    color: #4ade80; 
    font-weight: bold;
}

.post-content strong {
    color: #fff;
    font-weight: 700;
}

.post-content blockquote {
    border-left: 4px solid #52525b; 
    padding-left: 1.5rem;
    font-style: italic;
    color: #a1a1aa; 
    margin: 2rem 0;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    border: 1px solid #3f3f46; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Paginacja */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background-color: #18181b; 
    color: #d4d4d8; 
    border-radius: 0.5rem;
    border: 1px solid #3f3f46; 
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.pagination .page-numbers:hover {
    background-color: #27272a; 
    border-color: #71717a; 
    color: #fff;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background-color: #4ade80; 
    color: #000; 
    border-color: #4ade80;
    cursor: default;
    transform: none;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
    color: #52525b; 
}

.pagination h2.screen-reader-text {
    display: none;
}

/* Style Slidera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.replica-slider-wrapper {
    position: relative;
}

#replica-slider {
    cursor: grab; 
    user-select: none;
}

#replica-slider.active {
    cursor: grabbing;
    scroll-snap-type: none;
}

.replica-card {
    backdrop-filter: blur(10px);
    transform-origin: center center;
    -webkit-user-drag: none; 
}

.replica-card img {
    pointer-events: none;
}

#weapon-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Efekty HUD */
.tactical-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(74, 222, 128, 0.1);
    overflow: hidden;
    z-index: 20;
}

.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #4ade80;
    border-style: solid;
    opacity: 0.7;
}
.hud-tl { top: 20px; left: 20px; border-width: 2px 0 0 2px; }
.hud-tr { top: 20px; right: 20px; border-width: 2px 2px 0 0; }
.hud-bl { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; }
.hud-br { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; }

.hud-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #4ade80, transparent);
    opacity: 0.5;
    animation: scan 4s linear infinite;
    box-shadow: 0 0 10px #4ade80;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

.hud-blinker {
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- ANIMACJA ZDJĘCIA O NAS --- */
.img-pan-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: pan-zoom 20s infinite alternate ease-in-out;
    will-change: transform;
}

@keyframes pan-zoom {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -1%); }
}