/* ==========================================================================
   Podryad Filters Bar — DARK theme (optional override)

   How to enable:
     Add the class `podryad-filters-dark` to <body>. The simplest way:
     uncomment the marked line in FrontendLoader::filter_body_class().

   Scope: only applies when body has .podryad-filters-dark — base light
   styles in listing.css remain the default.
   ========================================================================== */

body.podryad-filters-dark .pc-filters-bar {
    background: linear-gradient(180deg, #0E1F4A 0%, #0B1A3E 100%);
    color: #E6ECF7;
    box-shadow: 0 6px 24px rgba(8, 15, 40, 0.18);
}

/* Labels */
body.podryad-filters-dark .pc-filters-bar__label {
    color: #B8C5DC;
}

/* Select fields — translucent fill, light text, light chevron */
body.podryad-filters-dark .pc-filters-bar__select {
    background-color: rgba(255, 255, 255, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B8C5DC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    border-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}
body.podryad-filters-dark .pc-filters-bar__select:hover {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}
body.podryad-filters-dark .pc-filters-bar__select:focus,
body.podryad-filters-dark .pc-filters-bar__select:focus-visible {
    outline: none;
    border-color: #4FC3F7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.25);
}
/* Native <option> dropdown — keep light theme so options remain readable
   when the menu opens (browsers don't fully theme custom selects). */
body.podryad-filters-dark .pc-filters-bar__select option {
    background: #FFFFFF;
    color: #01103A;
}

/* Checkbox — modernize the native input with accent-color and lighten label */
body.podryad-filters-dark .pc-filters-bar__checkbox {
    color: #E6ECF7;
}
body.podryad-filters-dark .pc-filters-bar__checkbox input[type="checkbox"] {
    accent-color: #4FC3F7;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Reset link — light, underline on hover */
body.podryad-filters-dark .pc-filters-bar__reset {
    color: #B8C5DC;
    text-decoration: none;
    transition: color 0.15s ease;
}
body.podryad-filters-dark .pc-filters-bar__reset:hover,
body.podryad-filters-dark .pc-filters-bar__reset:focus {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Primary "Применить" button — cyan accent on the dark surface
   so it pops against the navy gradient instead of disappearing. */
body.podryad-filters-dark .pc-filters-bar .pc-btn--primary {
    background: #4FC3F7;
    border-color: #4FC3F7;
    color: #01103A;
    box-shadow: 0 2px 10px rgba(79, 195, 247, 0.35);
}
body.podryad-filters-dark .pc-filters-bar .pc-btn--primary:hover,
body.podryad-filters-dark .pc-filters-bar .pc-btn--primary:focus {
    background: #6FCFF8;
    border-color: #6FCFF8;
    color: #01103A;
}
