/* ==========================================================================

  VYNUCENÉ GLOBÁLNÍ STYLY PRO DYNAMICO CHILD TÉMA

   (Tyto styly se aplikují přes "Další CSS" nebo child téma pro nejvyšší prioritu)

   ========================================================================== */

/* ==========================================================================

   STYLY PRO NÁZEV WEBU (Úklid domácnosti)

   ========================================================================== */


/* Vlastní styly pro název webu */

.site-title a {

    color: #030060 !important; /* ZMĚŇTE: Zde nastavte požadovanou barvu, např. vaši fialovou */

    text-decoration: none !important; /* Odstraní podtržení */

}



.site-title a:hover {

    color: #000000 !important; /* ZMĚŇTE: Barva při najetí myší (např. tmavá šedá) */

    text-decoration: underline !important; /* Volitelně: podtrhne při najetí */

}



/* ==========================================================================

   STYLY PRO HLAVNÍ NAVIGAČNÍ MENU

   ========================================================================== */



/* Kontejner menu */

.main-navigation,

#primary-navigation,

.site-header .main-navigation,

.header-menu-wrapper {

    background-color: #030060 !important; /* BARVA POZADÍ MENU - ZMĚŇTE (aktuálně tmavě šedá) */

    position: relative !important;

    z-index: 10 !important;

    width: 100%;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



/* Styly pro položky menu (odkazy) */

ul.main-navigation-menu a,

#primary-menu a,

.main-navigation .menu-item a {

    color: #55555!important;

    padding: 7px10px !important;

    text-decoration: none !important;

    display: block !important;

    font-size: 0.9em !important;

    font-weight: normal !important;

    line-height: 1 !important;

    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease !important; /* Přidán transform pro jemnější animaci */

}



/* Styly pro aktivní/aktuální položku menu */

.current-menu-item a,

.current_page_item a {

    background-color: #fff !important;

    color: #000000 !important;

}



/* Hover efekt pro položky menu */

ul.main-navigation-menu li a:hover,

#primary-menu a:hover,

.main-navigation .menu-item a:hover {

    background-color: #555555 !important;

    color: #000000
    text-decoration: none !important;

    transform: translateY(-2px); /* Jemný efekt posunu nahoru */

}



/* Styly pro rodičovské položky menu (které mají podmenu) */

ul.main-navigation-menu li.menu-item-has-children > a {

    padding-right: 30px !important;

}



/* Skrytí původních "teček" nebo jiných značek menu, pokud se zobrazují */

ul.main-navigation-menu li {

    list-style: none !important;

    margin: 0 !important;

    padding: 0 !important;

}

ul.main-navigation-menu {

    list-style: none !important;

    padding: 0 !important;

    margin: 0 !important;

    display: flex !important;

    justify-content: center !important;

    flex-wrap: wrap !important;

}

/* =================================================== */
/* Vzhled pro widget Skóre serióznosti v účtu pracovníka */
/* =================================================== */

.psp-dashboard-score-widget {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left-width: 5px;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.psp-dashboard-score-widget .psp-score-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.psp-dashboard-score-widget .psp-score-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3338;
}

.psp-dashboard-score-widget .psp-score-value {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.psp-dashboard-score-widget .psp-score-bar-container {
    background-color: #e9eaec;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    overflow: hidden;
}

.psp-dashboard-score-widget .psp-score-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* Barevné odlišení podle skóre */
.psp-dashboard-score-widget.is-high {
    border-left-color: #4CAF50; /* Zelená */
}
.psp-dashboard-score-widget.is-high .psp-score-value {
    color: #4CAF50;
}
.psp-dashboard-score-widget.is-high .psp-score-bar {
    background-color: #4CAF50;
}

.psp-dashboard-score-widget.is-medium {
    border-left-color: #FFC107; /* Oranžová */
}
.psp-dashboard-score-widget.is-medium .psp-score-value {
    color: #FFC107;
}
.psp-dashboard-score-widget.is-medium .psp-score-bar {
    background-color: #FFC107;
}

.psp-dashboard-score-widget.is-low {
    border-left-color: #F44336; /* Červená */
}
.psp-dashboard-score-widget.is-low .psp-score-value {
    color: #F44336;
}
.psp-dashboard-score-widget.is-low .psp-score-bar {
    background-color: #F44336;
}

/* ============================================= */
/* Styly pro rozbalovací formulář - uprava profilu pracovníka (PSP V3) */
/* ============================================= */

/* Základní styl pro rozbalovací sekce */
.psp-form-details {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
}

/* Styl pro nadpis (záhlaví) */
.psp-form-details summary {
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
    outline: none;
    list-style: none;
}

/* Skrytí výchozí šipky v Chrome/Safari */
.psp-form-details summary::-webkit-details-marker {
    display: none;
}

/* Vlastní šipka pro indikaci stavu */
.psp-form-details summary:before {
    content: '▶';
    margin-right: 0.5rem;
    font-size: 0.8em;
    display: inline-block;
    transition: transform 0.2s;
}

/* Otočení šipky při rozbalení */
.psp-form-details[open] > summary:before {
    transform: rotate(90deg);
}

/* Odsazení vnitřního obsahu */
.psp-form-details .psp-form-fieldset {
    border: none;
    margin: 0;
    padding: 0 1rem 1rem 1rem;
}

/* Odstranění odrážek u seznamu s checkboxy */
.psp-form-details .psp-checkbox-list {
    list-style: none; /* Odstraní odrážky */
    padding-left: 0;  /* Odstraní odsazení seznamu */
}

.psp-poptavka-content {
    font-size: 1em; /* Toto ovlivní velikost písma pro celý div */
}

/* ========================================================= */
/* Cílené odstranění odrážek u položek v seznamu (PSP V3) */
/* ========================================================= */

.psp-form-details .psp-checkbox-list li {
    /* Odstraní standardní odrážky, !important zvyšuje prioritu */
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important; /* Odstraní případné obrázkové odrážky */
    padding-left: 0 !important; /* Vynuluje odsazení pro odrážku */
}

.psp-form-details .psp-checkbox-list li::before {
    /* Odstraní puntíky přidané pomocí pseudo-elementu ::before */
    content: none !important;
    display: none !important;
}

/* --------------------------------------------------------------------------
   STYLY PRO ZOBRAZENÍ PROFILU PRACOVNÍKA
   -------------------------------------------------------------------------- */
.psp-profile-view {
    border: 2px solid #111;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.psp-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 20px;
}

.psp-profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.psp-profile-section h4 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.psp-profile-section p {
    margin: 0 0 5px 0;
    line-height: 1.5;
}

.psp-profile-attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.psp-attachment-display-item img {
    max-width: 100px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
}


/* ===================================================================
 * FINÁLNÍ STYLY PRO STRÁNKU KATALOGU (VERZE 7.2)
 * =================================================================== */

/* --- Obecné nastavení pro stránku katalogu --- */
.page-template-sablona-katalog .site-main {
    max-width: 1200px; /* Můžete upravit podle potřeby */
    margin: 0 auto;
}

/* --- 1. Styly pro Rozcestník ([katalog_rozcestnik]) --- */
.stranka-rozcestnik .psp-catalog-hub .psp-hub-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Vynutí 4 sloupce */
    gap: 20px !important;
    width: 100% !important;
}

.stranka-rozcestnik .psp-catalog-hub {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 30px;
}

.stranka-rozcestnik .psp-hub-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    border-bottom: 1px solid #ddd;
}
.stranka-rozcestnik .psp-hub-tabs li a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
}
.stranka-rozcestnik .psp-hub-tabs li.active a {
    color: #0073aa;
    border-bottom-color: #0073aa;
    font-weight: bold;
}

.stranka-rozcestnik .psp-hub-card {
    display: block;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}
.stranka-rozcestnik .psp-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #0073aa;
}
.stranka-rozcestnik .psp-hub-title {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.stranka-rozcestnik .psp-hub-count {
    display: block;
    font-size: 0.9em;
    color: #777;
}


/* --- 2. Styly pro horizontální vyhledávací formulář --- */
body.page-template-sablona-katalog #katalog-vyber-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 15px !important;
    background-color: #f7f7f7;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
}

body.page-template-sablona-katalog #katalog-vyber-form .form-group {
    display: flex;
    flex-direction: column;
}

body.page-template-sablona-katalog #katalog-vyber-form label {
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

body.page-template-sablona-katalog #katalog-vyber-form .button-group label {
    visibility: hidden;
}

body.page-template-sablona-katalog #katalog-vyber-form select,
body.page-template-sablona-katalog #katalog-vyber-form button {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 45px; /* Sjednotí výšku */
}

body.page-template-sablona-katalog #katalog-vyber-form button {
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   STYLY PRO PROFIL PRACOVNÍKA
   -------------------------------------------------------------------------- */
.psp-contact-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}
.psp-contact-info.locked-promo {
    background-color: #f0f5fa;
    border: 1px solid #0073aa;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}
.psp-contact-info.locked-promo h3 {
    margin-top: 0;
}
.psp-contact-info.locked-promo .psp-worker-card-button {
    margin-top: 15px;
}
.psp-reviews-list-wrapper {
    display: none;
}
.psp-toggle-reviews-button {
    cursor: pointer;
    color: #0073aa;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    border: 1px solid #0073aa;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.psp-toggle-reviews-button:hover {
    background-color: #0073aa;
    color: #fff;
}

.psp-ratings-overview-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}
.psp-star-rating-block .psp-worker-rating-summary {
    margin: 0;
}
.psp-seriousness-score-block {
    border-left: 3px solid #0073aa;
    padding-left: 15px;
}
.psp-seriousness-score-block .psp-score-label {
    display: block;
    font-weight: bold;
    color: #333;
}
.psp-seriousness-score-block .psp-score-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #0073aa;
}
.psp-related-content-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.psp-related-column {
    flex: 1;
    min-width: 280px;
}
.psp-related-column h3 {
    font-size: 1.2em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.psp-related-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.psp-related-column ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.psp-related-column ul li::before {
    content: '\f138';
    font-family: 'dashicons';
    position: absolute;
    left: 0;
    top: 2px;
    color: #0073aa;
}
.psp-related-column ul li a {
    text-decoration: none;
    font-weight: bold;
}
.psp-related-column ul li a:hover {
    text-decoration: underline;
}
.psp-profile-attachments h3 {
    margin-top: 0;
}
.psp-attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}
.psp-attachment-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: box-shadow 0.2s ease-in-out;
}
.psp-attachment-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.psp-attachment-item a {
    display: block;
    text-decoration: none;
    color: #444;
    text-align: center;
    padding: 10px;
}
.psp-attachment-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 8px;
}
.psp-attachment-preview img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}
.psp-attachment-preview .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #555d66;
}
.psp-attachment-filename {
    font-size: 12px;
    word-break: break-all;
    line-height: 1.3;
}
.psp-demands-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;
}
.psp-demand-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    background-color: #fff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.psp-demand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.psp-demand-card .psp-demand-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2em;
}
.psp-demand-card .psp-demand-title a {
    text-decoration: none;
    color: #0073aa;
}
.psp-demand-card .psp-demand-title a:hover {
    text-decoration: underline;
}
.psp-demand-meta {
    font-size: 0.9em;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 15px;
}
.psp-demand-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.psp-demand-meta .meta-item:not(:first-child)::before {
    content: '|';
    color: #ddd;
    margin-right: 15px;
}
.psp-demand-meta .meta-item .dashicons {
    font-size: 18px;
}
.psp-demand-meta a {
    text-decoration: none;
    color: inherit;
}
.psp-demand-meta a:hover {
    color: #0073aa;
}
.psp-pagination {
    margin-top: 30px;
    text-align: center;
}
.psp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    background-color: #fff;
    transition: background-color 0.2s, color 0.2s;
}
.psp-pagination .page-numbers:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}
.psp-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}
.psp-pagination .page-numbers.dots {
    border: none;
    background: none;
}
/* --------------------------------------------------------------------------
   STYLY PRO SEKCI 'NOVÉ POPTÁVKY PRO VÁS'
   -------------------------------------------------------------------------- */
.psp-new-demands-feed {
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
}
.psp-new-demands-feed .poptavka-item {
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.psp-new-demands-feed .poptavka-item-header {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}
.psp-new-demands-feed .poptavka-item-header a {
    font-size: 16px;
    font-weight: bold;
    color: #2271b1;
    text-decoration: none;
}
.psp-new-demands-feed .poptavka-item-header a:hover {
    color: #111;
    text-decoration: underline;
}
.psp-new-demands-feed .psp-inquiry-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.99em;
    color: #111;
}
.psp-new-demands-feed .button.button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    display: inline-block;
}
.psp-new-demands-feed .button.button-primary:hover {
    background-color: #0085ba;
    border-color: #0085ba;
}
.psp-new-demands-feed .psp-pagination {
    margin-top: 20px;
    text-align: center;
}
.psp-new-demands-feed .psp-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #555;
}
.psp-new-demands-feed .psp-pagination .page-numbers.current,
.psp-new-demands-feed .psp-pagination .page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Styly pro rozcestník v katalogu */
.psp-catalog-hub {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.psp-hub-tabs ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.psp-hub-tabs li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    border-right: 1px solid #e0e0e0;
}

.psp-hub-tabs li.active a {
    background-color: #fff;
    font-weight: bold;
}

.psp-hub-tab-content {
    padding: 20px;
}

.psp-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sloupce */
    gap: 15px;
}

.psp-hub-card {
    display: block;
    padding: 15px;
    border: 1px solid #eee;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
}

.psp-hub-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.psp-hub-title {
    display: block;
    font-weight: bold;
    color: #333;
}

.psp-hub-count {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

/* Responzivita pro mobily */
@media (max-width: 768px) {
    .psp-hub-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce na tabletu */
    }
}
@media (max-width: 600px) {
    .psp-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .psp-profile-details-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .psp-hub-grid {
        grid-template-columns: 1fr; /* 1 sloupec na mobilu */
    }
}