/**
 * Style dla Dynamic Taxonomy Menu
 */

/* Kontener główny menu */
.dynamic-taxonomy-menu {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Style dla pojedynczej kategorii */
.dynamic-taxonomy-term {
    margin-bottom: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
}

/* Tytuł kategorii */
.dynamic-taxonomy-term-title {
    background-color: #f7f7f7;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.dynamic-taxonomy-term-title:hover {
    background-color: #eaeaea;
}

/* Ikona rozwijania/zwijania */
.dynamic-taxonomy-term-toggle {
    width: 14px;
    height: 14px;
    position: relative;
}

.dynamic-taxonomy-term-toggle:before,
.dynamic-taxonomy-term-toggle:after {
    content: '';
    position: absolute;
    background-color: #555;
    transition: transform 0.3s ease;
}

.dynamic-taxonomy-term-toggle:before {
    width: 14px;
    height: 2px;
    top: 6px;
    left: 0;
}

.dynamic-taxonomy-term-toggle:after {
    width: 2px;
    height: 14px;
    top: 0;
    left: 6px;
}

.dynamic-taxonomy-term.active .dynamic-taxonomy-term-toggle:after {
    transform: rotate(90deg);
}

/* Usprawnienia dla płynnego rozszerzania w Divi */
.et_pb_section, .et_pb_row {
    overflow: visible !important;
}

/* Kontener postów */
.dynamic-taxonomy-posts {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #e2e2e2;
    display: none; /* Początkowo ukryte */
}

/* Lista postów */
.dynamic-taxonomy-posts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dynamic-taxonomy-post {
    padding: 6px 0;
    border-bottom: 1px solid #f1f1f1;
    list-style-type: none;
}

.dynamic-taxonomy-post:last-child {
    border-bottom: none;
}

.dynamic-taxonomy-post a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.dynamic-taxonomy-post a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Wyróżnienie dla aktywnego posta */
.dynamic-taxonomy-post.current-post-item {
    background-color: #f0f5fa;
}

.dynamic-taxonomy-post.current-post-item a {
    font-weight: 700;
}

/* Brak postów */
.dynamic-taxonomy-no-posts {
    font-style: italic;
    color: #777;
    margin: 0;
}

/* Brak kategorii */
.dynamic-taxonomy-menu-empty {
    padding: 15px;
    font-style: italic;
    color: #777;
    text-align: center;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
}

/* Responsywność */
@media screen and (max-width: 600px) {
    .dynamic-taxonomy-term-title {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .dynamic-taxonomy-posts {
        padding: 10px;
    }
} 