/* FLOW MEDIA */
@media (1100px < width) { 
    #filter-wrapper { flex: 1; } #post-wrapper { flex: 4; } 
    #main-wrapper { flex-direction: row; }
}
@media ( width < 1100px ) {  
    #filter-wrapper { flex: 1; margin-bottom: 0; } #post-wrapper { flex: 4; } 
    #main-wrapper { flex-direction: column; }
    #search-input { width: 80%; }
    #search-button { width: 80px !important; height: 80px !important; background-size: 50px !important; }
}

/* FILTER MENU */
#filter-wrapper { height: fit-content; }
#filter-divider { width: 100%; border: solid 5px var(--page-background); margin-top: 0; }

/* Search */
#filter-search { 
    display: flex; flex-direction: row; position: relative; 
    gap: 10px; margin-bottom: 20px; 
}
#search-input {
    background-color: var(--layout-bright); border: solid 5px var(--layout-accent);
    padding: 10px 10px; text-overflow: ellipsis;  min-height: 50px; font-size: 1em;
}
::placeholder{ font-style: italic; }
#search-button {
    box-shadow: none; border: none; margin-left: auto;
    border-radius: 50%; width: 50px; height: 50px;
    
    background: var(--layout-accent) url(assets/search_icon.png) no-repeat center; background-size: 30px;    
}
#search-button:hover, #search-button:active { background-color: var(--layout-bright); }

/* tags */
#filter-tags {
    margin-top: 20px;
    position: relative; display: flex; 
    flex-direction: row; flex-wrap: wrap; gap: 5px; 
    max-width: 85%; 
}

.tag-searchterms { 
    display: flex !important; gap: 5px !important; max-width: fit-content !important; 
    background-color: var(--page-background) !important; 
    margin-bottom: 20px;
}
.tag-searchterms span { color: black; }
.tag-searchterms:hover { background-color: var(--layout-bright) !important; }

.tag-current { display: flex !important; gap: 5px !important; max-width: fit-content !important; }
.tag-current span { position: relative;  width: fit-content; text-align: left; }
.tag-current-remove {
    margin: 0; position: relative;
    height: 20px; width: 20px; aspect-ratio: 1/1;
}

/* current filters */
#filter-searchterms {    
    position: relative; display: flex; 
    flex-direction: row; flex-wrap: wrap; gap: 5px; 
    max-width: 85%; 
}

/* current filters */
#filter-current {    
    position: relative; display: flex;
    flex-direction: row; flex-wrap: wrap; gap: 5px; 
    max-width: 85%; 
}
#filter-current:has(> .tag-current) {
    margin-bottom: 20px;
}

/* POSTS */


article {
    position: relative; display: block; flex: 4;
    background-color: var(--layout-bright);
    padding: 20px; padding-bottom: 30px;
}

/* post-metadata */
.post-metadata { position: relative; display: flex; flex-direction: row; }
.post-tags { 
    position: relative; display: flex; box-sizing: border-box;
    flex-direction: row; flex-wrap: wrap; gap: 5px; 
    max-width: 75%; 
}
.post-tag { 
    box-shadow: none; border: none; display: inline-block; text-align: left;
    background-color: var(--layout-accent); color: var(--layout-bright); font-size: 1em;
    font-weight: 600; padding: 5px 10px; height: fit-content; cursor: pointer;
}
.post-tag span { width: 100%; height: 100%; }

.post-date {
    position: relative; margin-left: auto; white-space: nowrap; max-height: fit-content;
    background-color: var(--layout-dark); color: var(--layout-bright);
    font-weight: 600; padding: 5px 10px;
}

.post-tag:hover { background-color: var(--layout-bright); color: var(--text-dark); }


