/* Post Index Page */
.blog-container {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 75% 25%;
    gap: 10px;
    margin-top: 10px;
}

.blog-post {
    display: grid;
    grid-template-rows: repeat(10, 100px);
    grid-column: 1;
    gap: 10px;
}

.blog-side-panel {
    grid-column: 2;
    background: #d0d0d0;
    gap: 10px;
}

.blog-post-info {
    font-size: 10pt;
}

.post {
    display: flex;
    flex-direction: column;
    padding-left: 5px;
}

.post a {
    text-decoration: none;
}

.post .blog-post-info {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-right: 5px;
}

.post-buttons {
    text-align: right;
}

.post-draft {
    border: 1px solid;
    background: lightgrey;
}

.post-draft:hover {
    background: grey;
    box-shadow: 0px 0px 3px black;
}

.post-published {
    border: 1px solid;
}

.post-published:hover {
    background: lightgrey;
    box-shadow: 0px 0px 3px black;
}

.blog-side-panel-filters {
    margin: 20px;
}

.blog-tree-view {
    margin-top: 20px;
}

.blog-tree {
    margin-top: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.tree-category {
    margin-bottom: 10px;
}

.tree-category-header {
    cursor: pointer;
    padding: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    border-radius: 3px;
}

.tree-category-header:hover {
    background-color: #e0e0e0;
}

.tree-year-group {
    margin-left: 20px;
    margin-top: 5px;
    display: none;
}

.tree-year {
    margin-bottom: 5px;
}

.tree-year-header {
    cursor: pointer;
    padding: 3px 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    border-radius: 3px;
    font-size: 0.9em;
}

.tree-year-header:hover {
    background-color: #e8e8e8;
}

.tree-posts {
    margin-left: 20px;
    margin-top: 3px;
    display: none;
}

.tree-post {
    padding: 3px 5px;
    margin-bottom: 3px;
    font-size: 0.85em;
}

.tree-post-link {
    color: #0066cc;
    text-decoration: none;
    display: block;
}

.tree-post-link:hover {
    text-decoration: underline;
    color: #004499;
}

.tree-post-date {
    display: block;
    color: #666;
    font-size: 0.8em;
    margin-top: 2px;
}

.tree-icon {
    width: 14px;
    text-align: center;
    font-size: 0.9em;
}

.post-content {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.post-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.6);
    z-index: 10;
}

.post-container {
    margin: 1rem 0;
}

