/* Alap kategória stílusok */
.pph-media-categories {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pph-media-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.pph-media-categories li {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInItem 0.5s ease forwards;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Késleltetett animáció az elemekhez */
.pph-media-categories li:nth-child(1) { animation-delay: 0.1s; }
.pph-media-categories li:nth-child(2) { animation-delay: 0.2s; }
.pph-media-categories li:nth-child(3) { animation-delay: 0.3s; }
.pph-media-categories li:nth-child(4) { animation-delay: 0.4s; }
.pph-media-categories li:nth-child(5) { animation-delay: 0.5s; }
.pph-media-categories li:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kétoszlopos elrendezés nagyobb képernyőkön */
.two-column-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
}

/* Fő kategória stílusok */
.main-category {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 3px solid #333;
    position: relative;
    overflow: hidden;
}

.main-category:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-category:hover {
    background-color: #ebebeb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.main-category:hover:before {
    opacity: 1;
}

.main-category.open {
    background-color: #e6e6e6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.main-category h2, .main-category h3, .main-category h4, .main-category h5, .main-category h6 {
    margin: 0;
    font-weight: 600;
    display: inline-block;
    flex-grow: 1;
    font-size: 1.1em;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: calc(100% - 30px);
    text-transform: uppercase;
    color: #333;
    hyphens: auto;
}

/* Alkategória stílusok */
.sub-category {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    border-left: 2px solid #999;
    position: relative;
    overflow: hidden;
}

.sub-category:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-category:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.sub-category:hover:before {
    opacity: 1;
}

.sub-category.open {
    background-color: #e9e9e9;
}

.sub-category h3, .sub-category h4, .sub-category h5, .sub-category h6 {
    margin: 0;
    font-weight: 500;
    display: inline-block;
    flex-grow: 1;
    font-size: 1em;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: calc(100% - 30px);
    color: #444;
    hyphens: auto;
}

/* Lenyitható részek stílusai */
.subcategories {
    padding: 8px 0 5px 15px;
    margin-top: 8px;
    border-left: 1px dashed #ccc;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.subcategories.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lenyitó ikon stílusok */
.dropdown-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    font-size: 11px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.open .dropdown-icon {
    background-color: #333;
    color: white;
    transform: rotate(90deg);
}

/* Kategória leírás stílusok */
.category-description {
    margin: 8px 0 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .two-column-categories {
        grid-template-columns: 1fr;
    }
    
    .main-category {
        padding: 12px 10px;
        min-height: 44px; /* Nagyobb érintési terület */
    }
    
    .main-category h2, .main-category h3, .main-category h4, .main-category h5, .main-category h6 {
        font-size: 1em;
    }
    
    .sub-category {
        padding: 10px;
        min-height: 40px; /* Nagyobb érintési terület */
    }
    
    .sub-category h3, .sub-category h4, .sub-category h5, .sub-category h6 {
        font-size: 0.95em;
    }
    
    .subcategories {
        padding-left: 12px;
    }
    
    .dropdown-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        font-size: 12px;
    }
    
    /* Jobb érintési visszajelzés */
    .main-category:active, .sub-category:active {
        background-color: #e0e0e0;
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .main-category {
        padding: 12px 8px;
        min-height: 48px; /* Még nagyobb érintési terület kis képernyőn */
    }
    
    .main-category h2, .main-category h3, .main-category h4, .main-category h5, .main-category h6 {
        font-size: 0.95em;
    }
    
    .sub-category {
        padding: 10px 8px;
        min-height: 44px; /* Nagyobb érintési terület */
    }
    
    .sub-category h3, .sub-category h4, .sub-category h5, .sub-category h6 {
        font-size: 0.9em;
    }
    
    .subcategories {
        padding-left: 10px;
    }
    
    .category-description {
        padding: 8px;
        font-size: 0.85em;
    }
    
    /* Nagyobb érintési ikon kis képernyőn */
    .dropdown-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}
/* Standard (nem lenyíló) kategóriák stílusai */
.pph-media-categories:not(.dropdown-enabled) li {
    padding: 12px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pph-media-categories:not(.dropdown-enabled) li:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #555;
    transition: width 0.3s ease;
}

.pph-media-categories:not(.dropdown-enabled) li:hover {
    background-color: #f9f9f9;
}

.pph-media-categories:not(.dropdown-enabled) li:hover:after {
    width: 100px;
}

.pph-media-categories:not(.dropdown-enabled) h3,
.pph-media-categories:not(.dropdown-enabled) h4,
.pph-media-categories:not(.dropdown-enabled) h5,
.pph-media-categories:not(.dropdown-enabled) h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
    
    position: relative;
    padding-left: 18px;
}


.pph-media-categories:not(.dropdown-enabled) .category-description {
    margin: 5px 0 0 18px;
    padding: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

.pph-media-categories:not(.dropdown-enabled) ul ul {
    margin-left: 20px;
    margin-top: 10px;
    padding-left: 15px;
}

.pph-media-categories h3{
    font-size:1.4em !important;
}
.pph-media-categories .category-level-2 h4{
    font-size:1.1em !important;
}
.pph-media-categories .category-level-3 h5{
    font-size:1em !important;
}

/* Reszponzív stílusok a standard kategóriákhoz */
@media (max-width: 768px) {
    .pph-media-categories:not(.dropdown-enabled) li {
        padding: 8px 0;
    }
    
    .pph-media-categories:not(.dropdown-enabled) h3,
    .pph-media-categories:not(.dropdown-enabled) h4,
    .pph-media-categories:not(.dropdown-enabled) h5,
    .pph-media-categories:not(.dropdown-enabled) h6 {
        font-size: 1em;
    }
    
    .pph-media-categories:not(.dropdown-enabled) ul ul {
        margin-left: 15px;
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .pph-media-categories:not(.dropdown-enabled) li {
        padding: 6px 0;
    }
    
    .pph-media-categories:not(.dropdown-enabled) h3,
    .pph-media-categories:not(.dropdown-enabled) h4,
    .pph-media-categories:not(.dropdown-enabled) h5,
    .pph-media-categories:not(.dropdown-enabled) h6 {
        font-size: 0.95em;
        padding-left: 15px;
    }
    
    .pph-media-categories:not(.dropdown-enabled) h3:before,
    .pph-media-categories:not(.dropdown-enabled) h4:before,
    .pph-media-categories:not(.dropdown-enabled) h5:before,
    .pph-media-categories:not(.dropdown-enabled) h6:before {
        font-size: 1.1em;
    }
    
    .pph-media-categories:not(.dropdown-enabled) .category-description {
        margin-left: 15px;
        font-size: 0.9em;
    }
    
    .pph-media-categories:not(.dropdown-enabled) ul ul {
        margin-left: 10px;
        padding-left: 8px;
    }
}

.pph-media-categories .category-level-2 h3{
    font-size: 18px !important;
}
