/*
Theme Name: MotoSpace Pro Custom
Theme URI: https://motospace.pro
Author: MotoSpace
Description: Motyw z pełną obsługą bloków WP.
Version: 1.2
*/

/* 1. Globalne ustawienia tła i koloru */
body {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Zapobiega poziomemu paskowi przewijania */
}

/* 2. Ustawienia dla Edytora (żeby wyglądał jak strona) */
.editor-styles-wrapper {
    background-color: #050505 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
}

/* 3. Typografia */
h1, h2, h3, h4, h5, h6, .font-tech, .wp-block-heading, .moto-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p, li, a, button, .wp-block-paragraph, .wp-block-button__link {
    font-family: 'Montserrat', sans-serif;
}

/* 4. Tło strony (Fixed) */
body::before {
    content: "";
    background-image: url('https://motospace.pro/tlo-moto-space.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* 5. Styl szklanych paneli */
.glass-panel, .wp-block-group.glass-panel, .wp-block-column.glass-panel {
    background-color: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

/* 6. Animacje (Zoom, Neon) */
figure.wp-block-image.moto-zoom {
    overflow: hidden !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}
figure.wp-block-image.moto-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform-origin: center center !important;
    width: 100% !important;
    display: block !important;
}
figure.wp-block-image.moto-zoom:hover img {
    transform: scale(1.15) !important;
}
figure.wp-block-image.moto-zoom:hover {
    box-shadow: 0 0 25px rgba(0, 163, 168, 0.6) !important;
    z-index: 10;
}

/* ========================================= */
/* 7. NAPRAWA WYRÓWNAŃ GUTENBERG (WAŻNE)    */
/* ========================================= */

/* Wyśrodkowanie obrazków i bloków */
.aligncenter, 
.wp-block-image.aligncenter,
.wp-block-image.aligncenter > img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block; /* Obrazki muszą być blokiem, żeby margin:auto działało */
    text-align: center;
}

/* Wyrównanie do prawej/lewej */
.alignright { float: right; margin-left: 1em; }
.alignleft { float: left; margin-right: 1em; }

/* Pełna szerokość (jeśli używasz) */
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; max-width: