/* Sidebar styles - Oldalsáv stílusok */
.sidebar {
    width: 260px;
    background: rgba(245, 242, 237, 0.9);
    border: 1px solid #b5ad9d;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    .sidebar {
        background: rgba(40, 37, 33, 0.9);
        border: 1px solid #4a453e;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }
}

.sidebar-header {
    background: rgba(240, 237, 232, 0.6);
    color: rgba(109, 90, 71, 0.8);
    padding: 8px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(181, 173, 157, 0.4);
}

@media (prefers-color-scheme: dark) {
    .sidebar-header {
        background: rgba(35, 32, 28, 0.6);
        color: rgba(220, 200, 170, 0.95);
        border-bottom: 1px solid rgba(74, 69, 62, 0.4);
    }
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.9em;
    margin: 0;
    font-weight: 500;
    text-shadow: none;
}

@media (prefers-color-scheme: dark) {
    .sidebar-title {
        color: rgba(220, 200, 170, 0.95);
    }
}

.timeline-tree {
    padding: 0;
    list-style: none;
    margin: 0;
}

.year-group {
    border-bottom: 1px solid #e8e6e3;
}

.year-group:last-child {
    border-bottom: none;
}

.year-header {
    background: rgba(235, 232, 227, 0.5);
    border: none;
    width: 100%;
    padding: 8px 14px;
    text-align: left;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 0.85em;
    font-weight: 500;
    color: rgba(109, 90, 71, 0.8);
    border-bottom: 1px solid rgba(200, 200, 200, 0.4);
    transition: all 0.2s ease;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .year-header {
        background: rgba(45, 42, 38, 0.5);
        color: rgba(180, 160, 130, 0.9);
        border-bottom: 1px solid rgba(90, 85, 78, 0.4);
    }
}

.year-header:hover {
    background: rgba(230, 227, 222, 0.7);
    color: #6d5a47;
}

@media (prefers-color-scheme: dark) {
    .year-header:hover {
        background: rgba(50, 47, 43, 0.7);
        color: #b4a082;
    }
}

.year-header::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid rgba(109, 90, 71, 0.4);
    border-bottom: 1.5px solid rgba(109, 90, 71, 0.4);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .year-header::after {
        border-right: 1.5px solid rgba(180, 160, 130, 0.8);
        border-bottom: 1.5px solid rgba(180, 160, 130, 0.8);
    }
}

.year-header.collapsed::after {
    transform: translateY(-50%) rotate(-45deg);
}

.month-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(249, 249, 249, 0.4);
}

@media (prefers-color-scheme: dark) {
    .month-list {
        background: rgba(25, 23, 21, 0.4);
    }
}

.month-list.expanded {
    display: block;
}

.month-group {
    border-bottom: 1px solid rgba(240, 240, 240, 0.3);
}

.month-group:last-child {
    border-bottom: none;
}

.month-header {
    background: rgba(230, 227, 222, 0.6);
    border: none;
    width: 100%;
    padding: 6px 28px;
    text-align: left;
    cursor: pointer;
    font-family: 'Crimson Text', serif;
    font-size: 0.75em;
    font-weight: 500;
    color: rgba(80, 70, 60, 0.9);
    border-bottom: 1px solid rgba(190, 180, 170, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .month-header {
        background: rgba(40, 37, 33, 0.6);
        color: rgba(170, 150, 120, 0.9);
        border-bottom: 1px solid rgba(80, 75, 68, 0.5);
    }
}

.month-header:hover {
    background: rgba(220, 217, 212, 0.8);
    color: #5a4a3a;
}

@media (prefers-color-scheme: dark) {
    .month-header:hover {
        background: rgba(45, 42, 38, 0.8);
        color: #aa9678;
    }
}

.month-header::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.2px solid rgba(80, 70, 60, 0.3);
    border-bottom: 1.2px solid rgba(80, 70, 60, 0.3);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .month-header::after {
        border-right: 1.2px solid rgba(170, 150, 120, 0.7);
        border-bottom: 1.2px solid rgba(170, 150, 120, 0.7);
    }
}

.month-header.collapsed::after {
    transform: translateY(-50%) rotate(-45deg);
}

.post-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list.expanded {
    display: block;
}

.post-item {
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item.current {
    background: linear-gradient(135deg, rgba(255, 249, 230, 0.6) 0%, rgba(249, 247, 244, 0.6) 100%);
    border-left: 2px solid rgba(212, 175, 55, 0.6);
}

.post-link {
    display: block;
    padding: 8px 36px 8px 42px;
    text-decoration: none;
    color: #6d5a47;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.2;
    background: linear-gradient(135deg, rgba(235, 232, 227, 0.6) 0%, rgba(230, 227, 222, 0.6) 100%);
}

@media (prefers-color-scheme: dark) {
    .post-link {
        color: #b4a082;
        background: linear-gradient(135deg, rgba(35, 32, 28, 0.6) 0%, rgba(40, 37, 33, 0.6) 100%);
    }
}

.post-title-sidebar {
    font-size: 0.75em;
    font-weight: 500;
    margin: 0;
    line-height: 1.1;
}

.post-date-sidebar {
    font-size: 0.65em;
    color: rgba(136, 136, 136, 0.8);
    margin-top: 2px;
    font-style: italic;
}

.post-item::before {
    content: '•';
    position: absolute;
    left: 32px;
    top: 12px;
    color: rgba(204, 204, 204, 0.5);
    font-size: 0.8em;
    opacity: 0.4;
}

.post-item.current::before {
    content: '●';
    color: rgba(212, 175, 55, 0.8);
    opacity: 0.8;
}
