/* Resetowanie stylów dla menu */
.sweetape-categories-dropdown,
.sweetape-categories-dropdown *,
.sweetape-categories-dropdown *::before,
.sweetape-categories-dropdown *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sweetape-categories-dropdown {
    display: inline-block;
    position: relative;
    min-width: 220px;
    font-family: inherit;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--global-palette1, #0073aa);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.sweetape-categories-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.sweetape-categories-dropdown.active .dropdown-list {
    display: block;
}

.dropdown-list li {
    margin: 0;
    padding: 0;
    position: relative;
}

.category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: #2c3338;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 14px;
}

.category-item a:hover,
.category-item a:focus,
.category-item a:active {
    text-decoration: none !important;
}

.category-item a:hover {
    background-color: var(--global-palette1, #0073aa);
    color: #fff;
    border-left-color: #fff;
}

.submenu-arrow {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-left: 8px;
    opacity: 0.6;
}

.submenu {
    position: absolute;
    top: -6px;
    left: 100%;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    min-width: 220px;
}

.category-item:hover > .submenu {
    display: block;
}

.sweetape-categories-dropdown:hover .dropdown-header {
    background-color: var(--global-palette2, #005177);
}

/* Animacja dla submenu */
.submenu {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dodanie separatorów między elementami */
.category-item:not(:last-child) > a {
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Efekt hover dla głównego przycisku */
.dropdown-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Stylowanie aktywnego elementu */
.category-item.active > a {
    background-color: rgba(0,115,170,0.04);
    border-left-color: var(--global-palette1, #0073aa);
    font-weight: 500;
}

.submenu-left {
    left: auto !important;
    right: 100% !important;
}

.submenu-left .submenu-arrow {
    transform: rotate(180deg);
}

/* Style dla mobilnej wersji kategorii */
.sweetape-categories-mobile {
    width: 100%;
    margin: 1rem 0;
    font-family: inherit;
}

.mobile-categories-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: var(--global-palette1, #0073aa);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
}

.mobile-categories-header .category-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mobile-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-category-item {
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.category-toggle {
    display: none;
}

.category-label, 
.category-link {
    display: block;
    padding: 12px 15px;
    color: #2c3338;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: background-color 0.2s ease;
}

.category-label {
    cursor: pointer;
}

.toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #666;
    transition: transform 0.3s ease;
}

.toggle-icon::before {
    width: 12px;
    height: 2px;
    top: 5px;
    left: 0;
}

.toggle-icon::after {
    width: 2px;
    height: 12px;
    left: 5px;
    top: 0;
}

.category-toggle:checked + .category-label .toggle-icon::after {
    transform: rotate(90deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0,0,0,0.02);
}

.category-toggle:checked ~ .mobile-submenu {
    max-height: 1000px;
}

.mobile-category-item .category-label:hover,
.mobile-category-item .category-link:hover {
    background-color: rgba(0,115,170,0.04);
}

.level-0 > .category-label,
.level-0 > .category-link {
    font-weight: 500;
}

.level-1 > .category-label,
.level-1 > .category-link {
    padding-left: 30px;
}

.level-2 > .category-label,
.level-2 > .category-link {
    padding-left: 45px;
}

.level-3 > .category-label,
.level-3 > .category-link {
    padding-left: 60px;
}

/* Responsywność */
@media (min-width: 768px) {
    .sweetape-categories-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .sweetape-categories-dropdown {
        display: none;
    }
}

.sweetape-authors-block {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sweetape-authors-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.sweetape-author-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    width: 100%;
}

.sweetape-author-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sweetape-author-avatar {
    margin-right: 2rem;
    flex-shrink: 0;
}

.sweetape-author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sweetape-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sweetape-author-name {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.sweetape-author-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sweetape-author-name a:hover {
    color: #0066cc;
}

.sweetape-author-bio {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.sweetape-author-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
}

.sweetape-post-count {
    font-weight: 500;
    font-size: 1rem;
}

.sweetape-author-posts-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background-color: var(--global-palette1, #0073aa);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sweetape-author-posts-link:hover {
    background-color: var(--global-palette2, #005177);
    transform: translateY(-1px);
    color: #fff;
}

.sweetape-no-authors {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .sweetape-author-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .sweetape-author-avatar {
        margin: 0 0 1.5rem 0;
    }

    .sweetape-author-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .sweetape-author-name {
        font-size: 1.3rem;
    }
} 