@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;700&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

/* Global variables */
:root {
    --bg-color: #f2f2f2;
    --text-color: #000;
    --text-color-light: #fff;
    --accent-color: #ffffff;
    --nav-color: #202020;
    --entry-bg-color: #e0e0e0;
}

/* body */
body {
    font-family: 'IBM Plex Sans', monospace;
    font-size: 14px;
    background-color: var(--bg-color);
    color: var(--text-color);
    -ms-overflow-style: none;
    scrollbar-width: none;
    line-height: 1.5;
}

body::-webkit-scrollbar {
    display: none;
}

/* links */
a {
    color: inherit;
    text-decoration: none;
}

/* layout */
.container {
    min-height: 100vh;
}

/* nav bar */
.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 170px;
    height: 100vh;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: auto;
    font-size: 14px;
    color: var(--text-color-light);
    background-color: var(--nav-color);
    line-height: 1.5;
}

.sidenav a:hover {
    background-color: var(--text-color-light);
    color: var(--nav-color);
}


.sidenav a.active {
    text-decoration: underline;
}

.sidenav-links{
    margin-top: auto;
}

.sidenav-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.sidenav-links a::after {
    content: "↗";
}

/* main content */
.main {
    margin-left: 175px;
    min-height: 80vh;
    width: 950px;
    padding-top: 6px;
}

.main p {
    margin: 0;
}

.main a {
    text-decoration: underline;
}

.main a:hover {
    background-color: var(--text-color);
    color: var(--accent-color);
}

.main a:not(:has(img))::after {
    content: " ↗";
    font-size: inherit;
}

/* footer */

.footer-logo {
    width: 80px;
    height: auto;
    margin: 0;
    filter: invert(1);
}

/* news in homepage */
.news {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 16px;
    background-color: var(--entry-bg-color);
    padding: 10px;
    margin-top: 8px;
}

.news img {
    width: 100px;
    height: auto;
    object-fit: cover;
}

/* blog and efyl radio entries */
.entry {
    display: flex;
    gap: 12px;
}

.entry:nth-child(even) {
    background-color: var(--entry-bg-color);
}

.entry-date, .post-date {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: bold;
    flex-shrink: 0;
}

.entry-title {
    flex: 1;
    min-width: 12rem;
}

.entry-links {
    display: grid;
    grid-template-columns: 4.5rem 4.7rem 6rem 5.5rem;
    justify-items: end;
    white-space: nowrap;
    flex-shrink: 0;
}

.entry-cover {
    width: 18px;
    flex-shrink: 0;
    align-self: center;
    object-fit: cover;
}

/* Tracklist */
.episode ul {
    list-style: none;
    padding: 0;
}

.episode li {
    display: flex;
    justify-content: space-between;
}

.episode li:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
}

.episode img {
    margin-left: auto;
}

/* images */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* header */
/* overwritten in efyl radio ep pages */
.header2 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 20px;
    background-image: linear-gradient(to left, var(--text-color), rgba(255, 255, 255, 0)), url('/img/global/banner.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    padding: 2px 8px 2px 0px;
    margin-bottom: 10px;
    text-align: right;
}
