/*
 * Theme Name: GeneratePress Child (Poppins Only)
 * Theme URI: https://generatepress.com
 * Description: Motyw potomny dla GeneratePress. Zawiera gotową strukturę pod lokalne fonty Poppins (400/600/700).
 * Author: Your Name
 * Author URI: https://example.com
 * Template: generatepress
 * Version: 1.0.0
 * Text Domain: generatepress-child-poppins
 */

/* =====================================================
   FORM FIELD STYLES (qlus_jobs checkbox grid)
   ===================================================== */
/* UM Forms: Compact 2-column grid on desktop, single column on mobile */
#um_field_1432_qlus_jobs .um-field-area {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

#um_field_1432_qlus_jobs .um-field-checkbox {
    width: calc(50% - 10px);
    margin: 0 !important;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    #um_field_1432_qlus_jobs .um-field-checkbox {
        width: 100% !important;
    }
}

/* =====================================================
   EQUALIZE HEADER + PLUGIN BUTTONS
   (Styling common buttons for consistency)
   ===================================================== */
.main-navigation .menu-button a,
.qlus-global-bar .qlus-btn {
    /* Layout and Alignment */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;

    /* Spacing and Box Model */
    padding: 8px 20px;
    margin: 10px 5px;
    border-radius: 4px;
    border: none !important;
    /* usuwa border w pluginie */
    box-shadow: none !important;

    /* Typography and Color */
    background: #2B6CB0;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.2 !important;
    text-decoration: none;

    /* Interaction */
    transition: background 0.2s ease;
}

.main-navigation .menu-button a:hover,
.qlus-global-bar .qlus-btn:hover {
    background: #356283;
}

/* =====================================================
   MAIN NAVIGATION TWEAKS
   ===================================================== */
/* Disable mobile hamburger in GeneratePress */
.menu-toggle {
    display: none !important;
}


/* =====================================================
   Responsive Main Navigation (scrollable on mobile)
   ===================================================== */
@media (max-width: 768px) {

    /* kontener menu */
    .main-navigation .main-nav {
        /* Layout */
        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;

        /* Scrolling */
        overflow-x: auto;
        white-space: nowrap;
        scroll-snap-type: x mandatory;

        /* Spacing */
        padding: 0px 0px;
    }

    /* lista menu */
    .main-navigation .main-nav>ul {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
    }

    /* elementy menu */
    .main-navigation .main-nav>ul>li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* ukrycie scrollbara */
    .main-navigation .main-nav::-webkit-scrollbar {
        display: none;
    }
}

/* =====================================================
   Scroll hint for mobile main navigation (fixed edges)
   ===================================================== */
@media (max-width: 768px) {
    .main-navigation {
        --nav-overlay-color: #ffffff;
        position: relative;
        overflow: hidden;
    }
    
    html.dark .main-navigation {
        --nav-overlay-color: var(--bg-light);
    }
    .main-navigation .main-nav {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .main-navigation::before,
    .main-navigation::after {
        content: "";
        position: absolute;
        top: 0;
        width: 24px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }
    .main-navigation::before {
        left: 0;
        background: linear-gradient(to right, var(--nav-overlay-color), rgba(255, 255, 255, 0));
    }
    .main-navigation::after {
        right: 0;
        background: linear-gradient(to left, var(--nav-overlay-color), rgba(255, 255, 255, 0));
    }
}

/* =====================================================
   HERO SECTION – tło z obrazem, nakładka i dolny gradient
   ===================================================== */
.hero-section {
    /* Positioning and Layout */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;

    /* Box Model */
    min-height: 580px;
    /* lekko zmniejszona wysokość */

    /* Visuals */
    background: url(https://blokso.com/wp-content/uploads/2025/11/blokso_hero.jpg) no-repeat right center / cover;
    color: #0a0a0a;
}

/* Soft fade z lewej strony dla czytelności tekstu */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(248, 250, 255, 0.95) 35%, rgba(248, 250, 255, 0) 100%);
    z-index: 1;
}


.hero-section .content {
    position: relative;
    z-index: 3;
    max-width: 520px;
    margin-left: 8%;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.hero-section .button.button-primary {
    /* Visuals */
    background-color: #2B6CB0;
    /* brand color */
    color: #fff;
    text-decoration: none;

    /* Spacing and Box Model */
    padding: 0.75rem 1.5rem;
    border-radius: 6px;

    /* Typography */
    font-weight: 500;

    /* Interaction */
    transition: background 0.2s ease;
}

.hero-section .button.button-primary:hover {
    background-color: #356283;
    /* hover brand color */
}

/* Mobilna wersja hero */
@media (max-width: 768px) {
    .hero-section {
        justify-content: center;
        text-align: center;
        background-position: center top;
        min-height: 500px;
    }

    .hero-section .content {
        margin: 0 1.5rem;
    }

    .hero-section::before {
        background: linear-gradient(to bottom, rgba(248, 250, 255, 0.9) 40%, rgba(248, 250, 255, 0) 100%);
    }

    .hero-section::after {
        height: 60px;
        /* mniejszy gradient na mobile */
    }
}

/* =====================================================
   FEATURES SECTION – responsywna siatka 3 kolumn
   ===================================================== */
.features {
    /* Layout */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    /* Spacing */
    gap: 1rem;
    /* mniejszy odstęp między kartami */
    padding: 1rem 1rem;
    /* zmniejszone wcięcia */

    /* Visuals */
    background: #fff;
}

.features .feature {
    flex: 1 1 30%;
    max-width: 360px;
    text-align: center;
    padding: 1rem;
}

.features .feature img {
    /* Box Model */
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    display: inline-block;
    padding: 12px;
    border-radius: 12px;

    /* Positioning and Spacing */
    margin: 0 auto 1rem;

    /* Visuals */
    object-fit: contain;
    background: rgba(43, 108, 176, 0.05);
    /* delikatny niebieski z brandu */
}

.features .feature h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.features .feature p {
    font-size: 1rem;
    color: #555;
}

/* Stack na wąskich ekranach */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 1rem;
        /* mniejsze wcięcia na mobile */
    }

    .features .feature {
        max-width: 100%;
    }
}

/* =====================================================
   WHY BLOKSO & TRUSTED BY SECTIONS
   ===================================================== */
.why-blokso,
.trusted-by {
    /* Box Model and Spacing */
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    /* zmniejszone wcięcia */

    /* Typography */
    text-align: center;
    line-height: 1.6;
    color: #111;
}

.why-blokso h2,
.trusted-by h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.why-blokso p,
.trusted-by p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
}

.why-blokso {
    background: linear-gradient(to bottom, #f9fbff 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.trusted-by {
    background: linear-gradient(to top, #ffffff 90%, #f9fbff 100%);
}

/* Styl CTA w sekcji Trusted by */
.trusted-by .button.button-primary {
    /* Visuals */
    background-color: #2B6CB0;
    color: #fff;
    text-decoration: none;

    /* Box Model and Spacing */
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 1rem;

    /* Typography */
    font-weight: 500;

    /* Interaction */
    transition: background 0.2s ease;
}

.trusted-by .button.button-primary:hover {
    background-color: #356283;
}

/* Mobile tweaks dla Why/Trusted */
@media (max-width: 768px) {

    .why-blokso,
    .trusted-by {
        padding: 2.5rem 1.25rem;
    }

    .why-blokso h2,
    .trusted-by h2 {
        font-size: 1.75rem;
    }

    .why-blokso p,
    .trusted-by p {
        font-size: 1rem;
    }
}

/* =====================================================
   SECTION SPACING & DELIKATNE PRZEJŚCIA
   ===================================================== */
section {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
    /* mniej miejsca nad i pod każdą sekcją */
}

/* =====================================================
   FEATURE SHOWCASE (Tabs/Accordion)
   ===================================================== */
/* Ogólny układ */
.feature-showcase {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.feature-nav {
    flex: 0 0 220px;
    /* szerokość kolumny z nawigacją */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-tab {
    /* Layout */
    display: flex;
    align-items: center;

    /* Spacing and Box Model */
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    border-left: 4px solid transparent;
    border-radius: 6px;

    /* Visuals and Interaction */
    background: #f5f7fb;
    color: #1a202c;
    cursor: pointer;
    transition: background 0.2s ease;
}

.feature-tab:hover {
    background: #e8eef7;
}

.feature-tab.active {
    background: #ffffff;
    border-left-color: #2B6CB0;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feature-content {
    flex: 1 1 auto;
    position: relative;
}

.feature-pane {
    display: none;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-pane.active {
    display: block;
}

.feature-pane img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Mobile: kolumny pod sobą i poziomy scroll w nawigacji */
@media (max-width: 768px) {
    .feature-showcase {
        flex-direction: column;
    }

    .feature-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .feature-tab {
        flex: 0 0 auto;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .feature-tab.active {
        border-left: none;
        border-bottom-color: #2B6CB0;
    }
}

/* =====================================================
   HEADER LAYOUT & PADDING - POPRAWKA DLA MOBILE LOGO
   ===================================================== */

/* Upewnienie się, że globalne paddingi są zerowane, jeśli to potrzebne */
.inside-header {
    padding: 0px 0px 0px 0px;
}

/* Kluczowa sekcja: Zmiana kolejności elementów w nagłówku na urządzeniach mobilnych (<= 992px) */
@media (max-width: 992px) {
    .inside-header {
        /* Upewniamy się, że jest to flex-column dla ułożenia jeden pod drugim */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0px 0px 0px 0px;
    }

    /* Ustawiamy elementy w kolejności: 1. Nawigacja, 2. Logo */
    #site-navigation {
        order: 1;
        /* NAWIGACJA U GÓRY */
    }

    .site-logo {
        order: 2;
        /* LOGO NA DOLE */
    }

    /* Upewnij się, że elementy nawigacji wewnątrz menu się nie skracają */
    .main-navigation ul,
    .main-navigation.toggled ul {
        justify-content: center;
        /* Centrowanie elementów menu poziomego */
    }
}

/* =====================================================
   FIX: Utrzymanie kolejności Logo/Nav poniżej 768px
   (Logo musi być na dole, Nav na górze)
   ===================================================== */
@media (max-width: 768px) {

    /* Wymuszamy układ kolumnowy i poprawne wyrównanie */
    .inside-header {
        display: flex;
        flex-direction: column;
        /* Utrzymuje elementy jeden pod drugim */
        align-items: center;
        /* Centruje elementy */
        text-align: center;
        padding: 0px 0px 0px 0px;
        /* Dopasowuje padding do mobilnych ustawień GP */
    }

    /* Nadpisujemy kolejność dla mniejszych ekranów: Nawigacja na górze */
    #site-navigation {
        order: 1 !important;
    }

    /* Nadpisujemy kolejność dla mniejszych ekranów: Logo na dole */
    .site-logo {
        order: 2 !important;
    }
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 280px;
    min-width: 220px;
}

.footer-column h4 {
    color: #2B6CB0;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-column p {
    margin: 0.35rem 0;
    line-height: 1.5;
}

.footer-column .mail {
    color: #2B6CB0;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}

.footer-column .mail:hover {
    color: #356283;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li+li {
    margin-top: 0.35rem;
}

.footer-links a {
    color: #2B6CB0;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s ease;
}

.footer-links a:hover {
    color: #356283;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    margin-top: 2rem;
    border-top: 1px solid #e5e9f0;
    padding-top: 1rem;
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-column {
        flex: none;
    }
}

@media (max-width: 768px) {
    .site-logo {
        margin: 0 auto !important;
        /* usuwa auto-margin z lewej */
        align-self: center;
        /* wymusza środkowanie w kolumnie */
    }
}

.one-container .site-content {
    padding: 5px !important;
}


.site-main .wp-block-group__inner-container {
    padding: 5px !important;
}


.um-form {
    padding: 15px;
}

.um-account-name,
.um-account-profile-link {
    display: none;
}

/* =======================================
   HERO BLUR – GÓRA I DÓŁ
======================================= */
.hero-blur-top,
.hero-blur-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 90px;
    pointer-events: none;
    filter: blur(20px);
    z-index: 5;
}

.hero-blur-top {
    top: -35px;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 1) 100%);
}

.hero-blur-bottom {
    bottom: -35px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 1) 100%);
}

/* =======================================
   HERO POD KAFELKAMI
======================================= */
.hero-section {
    position: relative;
    z-index: 1;
    overflow: visible;
    /* blur może wystawać */
}

/* =======================================
   KAFELKI – NAD HERO I PRZEZROCZYSTE TŁO
======================================= */
.profession-ticker {
    position: relative;
    z-index: 20;
    background: transparent !important;
}

/* NIE wymuszamy transparent na dzieciach,
   bo niszczy to tło kafelków */
.profession-item {
    background: #F8FAFF !important;
    z-index: 30;
    position: relative;
}

/* =======================================
   USUNIĘCIE BIAŁEGO TŁA GENERATEPRESS NA HOME
======================================= */
.home .site-content,
.home .content-area,
.home .entry-content,
.home .wp-block-group,
.home .wp-block-group__inner-container {
    background: transparent !important;
}


/* ===================================================
   BLOKSO – UNIFIED FORM STYLE
   Applies to:
   - .um.um-form  (Ultimate Member billing form)
   - .mollie-subscribe-form  (paused account subscribe form)
=================================================== */

/* WRAPPER (both forms) */
.um.um-form,
.mollie-subscribe-form {
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* HEADINGS ABOVE FORMS (pausing area) */
.paused-account-wrap {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* LABELS */
.um.um-form .um-field-label label,
.mollie-subscribe-form label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-bottom: 4px !important;
    display: block !important;
    text-align: left !important;
}

/* INPUTS */
.um.um-form .um-field-area input[type="text"],
.um.um-form .um-field-area input[type="email"],
.mollie-subscribe-form input[type="text"],
.mollie-subscribe-form input[type="email"],
.mollie-subscribe-form input[type="tel"],
.mollie-subscribe-form input[type="number"],
.mollie-subscribe-form input[type="password"] {
    width: 100% !important;
    padding: 9px 11px !important;
    font-size: 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #f7f8f9 !important;
    height: 38px !important;
    box-sizing: border-box;
}

.um.um-form .um-field-area input:focus,
.mollie-subscribe-form input:focus {
    background: #fff !important;
    border-color: #b5bac3 !important;
    outline: none !important;
}

/* FIELD SPACING */
.um.um-form .um-field,
.mollie-subscribe-form p {
    margin-bottom: 14px !important;
}

/* REMOVE INTERNAL UM SPACING */
.um.um-form .um-field-area {
    margin-top: 0 !important;
}

/* SUBMIT BUTTON – BLOKSO STYLE (both forms) */
.um.um-form input[type="submit"],
.um.um-form .um-button,
.mollie-subscribe-form button[type="submit"],
.mollie-subscribe-form button {
    width: 100% !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #2B6CB0 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center !important;
}

.um.um-form input[type="submit"]:hover,
.um.um-form .um-button:hover,
.mollie-subscribe-form button:hover {
    background: #356283 !important;
}

/* REMOVE EXTRA UM BUTTON SPACING */
.um.um-form .um-field.um-field-type_submit {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* MOBILE TWEAKS */
@media (max-width: 480px) {

    .um.um-form,
    .mollie-subscribe-form {
        padding: 0 !important;
    }

    .um.um-form .um-field,
    .mollie-subscribe-form p {
        margin-bottom: 12px !important;
    }

    .um.um-form input[type="submit"],
    .mollie-subscribe-form button {
        font-size: 15px !important;
    }
}


.inside-site-info {
    display: none !important;
}

/* ============================================================
   DARK MODE SYNC (GeneratePress + Plugin)
   ============================================================ */
/* 1. Map Plugin Variables to GeneratePress Variables */
html.dark {
    --base-2: var(--bg-dark);
    /* Page Background */
    --base-3: var(--bg-light);
    /* Header/Card Background */
    --contrast: var(--text);
    /* Primary Text */
    --contrast-2: var(--text-muted);
}

/* 2. Fix the Logo Readability (Makes black logo white) */
html.dark .site-logo img {
    filter: invert(1) brightness(10);
}

/* 3. Global Structure (Excludes .home for safety) */
html.dark:not(.home) body,
html.dark:not(.home) .site-content,
html.dark:not(.home) .content-area,
html.dark:not(.home) #primary,
html.dark:not(.home) .inside-article,
html.dark:not(.home) .separate-containers .inside-article,
html.dark:not(.home) .blokso-dashboard,
html.dark:not(.home) .blokso-main {
    background-color: var(--bg-dark) !important;
    color: var(--text) !important;
}

/* 4. Navigation, Header & Footer (Excludes .home for safety) */
html.dark:not(.home) .site-header,
html.dark:not(.home) .main-navigation,
html.dark:not(.home) .main-navigation ul ul,
html.dark:not(.home) .site-footer {
    background-color: var(--bg-light) !important;
}

/* FIX: Ensure header buttons ALWAYS have white text */
.main-navigation .menu-button a {
    color: #fff !important;
}

/* Only standard links in the nav should change color in dark mode */
html.dark:not(.home) .main-navigation .main-nav ul li:not(.menu-button) a {
    color: var(--text) !important;
}

/* 5. Account Page Specifics */
html.dark .blokso-card,
html.dark .qlus-sidebar,
html.dark .blokso-sidebar {
    background-color: var(--bg-light) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* Fix "Delete account" light text contrast */
html.dark .blokso-delete-account p {
    color: var(--text-muted) !important;
}

/* 1. Naprawa białych elementów na stronie konta w trybie ciemnym */
html.dark .blokso-dashboard .blokso-sub-item,
html.dark .blokso-dashboard .blokso-box,
html.dark .blokso-dashboard .blokso-data-table thead th {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
html.dark .blokso-dashboard .blokso-data-table td {
    border-color: var(--border) !important;
}

/* 2. Poprawka gradientu w nawigacji mobilnej (usuwamy białe krawędzie) */
@media (max-width: 768px) {
    .main-navigation::before {
        background: linear-gradient(to right, var(--nav-overlay-color), transparent) !important;
    }
    .main-navigation::after {
        background: linear-gradient(to left, var(--nav-overlay-color), transparent) !important;
    }
}