/*
 * FULAFIA Backbone Plugin Styles
 * Version: 1.1
 */

.year-category-list {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 2em auto;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* To make border-radius work with children */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- Year Links --- */
.year-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

.year-link {
    padding: 8px 16px;
    text-decoration: none;
    color: #005a9c;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background-color: #fff;
}

.year-link:hover {
    background-color: #eef7ff;
    border-color: #005a9c;
    color: #004170;
}

.year-link.active {
    background-color: #005a9c;
    color: #fff;
    border-color: #005a9c;
}

/* --- Content Area --- */
.categories-content {
    padding: 20px;
    display: block;
    animation: fadeIn 0.5s ease;
}

.categories-content.is-hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Accordion Styling --- */
.category-accordion {
    border-bottom: 1px solid #e9e9e9;
}
.category-accordion:last-child {
    border-bottom: none;
}

.category-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 10px;
    background: none;
    border: none;
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-toggle:hover {
    background-color: #f9f9f9;
}

.toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background-color: #005a9c;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.category-toggle.active .toggle-icon {
    transform: rotate(135deg);
}

/* --- Post List --- */
.post-list-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fafafa;
}

.post-list {
    list-style: none;
    padding: 10px 20px 20px 30px;
    margin: 0;
}

.post-list-item {
    padding: 8px 0;
}

.post-list-item a {
    text-decoration: none;
    color: #444;
    transition: color 0.2s ease;
}

.post-list-item a:hover {
    color: #005a9c;
    text-decoration: underline;
}

.post-list-item.is-empty {
    color: #777;
    font-style: italic;
}
