/* --- variables --- */
:root {
    --blue: #1d9bf0;
    --dark: #0f1419;
    --gray: #536471;
    --border: #e1e8ed;
    --hover: #f5f8fa;
    --hover-bg: #f5f8fa;
    --hover-shadow: rgba(0, 0, 0, 0.1);
    --like-blue: #0065ff;
    --dislike-red: #ea243c;
}

/* --- timeline body --- */
body {
    font-family: sans-serif;
    margin: 0;
    padding-top: 60px;
}


/* --- Post Style --- */
.post {
    display: flex;
    background: #fff;
    border: 1px solid var(--border);
    width: 91vw;
    padding: 10px;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 0vh; /* spacing between posts */
    gap: 10px;
}

.post.active:hover {
    background: var(--hover-bg);
    box-shadow: 0 4px 8px var(--hover-shadow);
}

/* overwrite if mobile/to small */

@media (min-width: 868px) {
    .post {
        width: 31vw;
    }
}


.post-hashtag {
    color: var(--blue);
    text-decoration: none;
    cursor: pointer;
}

.post-hashtag:hover {
    color: #551A8B;
    text-decoration: none;
}

.post-link {
    color: var(--blue);
    text-decoration: underline;
    cursor: pointer;
}

.post-link:hover {
    color: #551A8B;
    text-decoration: none;
}

.post-avatar {
    filter: blur(8px);
    opacity: 0.3;
    object-fit: cover;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

/* --- no blur --- */
.post-avatar.active {
    filter: blur(0px);
    opacity: 1;
}

.post-content {
    filter: blur(8px);
    opacity: 0.3;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0vh;
    overflow-wrap: anywhere;
    hyphens: auto;
    flex: 1;
    color: #666666;
    /* make text not selectable */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- no blur --- */
.post-content.active {
    filter: blur(0px);
    opacity: 1;
    /* make text selectable */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.post-text {
    color: var(--dark);
    line-height: 1.5;
    white-space: pre-line;
    min-height: 10vh;
    margin: 4px 0;
    text-align: left;
}

/* --- Post Header Style --- */
.post-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    color: var(--dark);
    font-size: 15px;
}

.post-handle, .post-time {
    color: var(--gray);
}

.post-name {
    color: var(--dark);
    font-weight: bold;
}

/* --- Post Footer Style --- */
.post-footer {
    display: flex;
    justify-content: space-between;
    max-width: 360px;
    color: var(--gray);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background .2s;
}

.post-action:hover {
    background: var(--hover);
}

.post-action svg {
    width: 18px;
    height: 18px;
    fill: var(--gray);
}

.post-path {
    fill: none;
    stroke: var(--gray);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Action Button Styles --- */
/* --- like --- */
.post-btn.active .post-like {
    fill: var(--like-blue);
    stroke: var(--like-blue);
}

/* --- dislike --- */
.post-btn.active .post-dislike {
    fill: var(--dislike-red);
    stroke: var(--dislike-red);
}

.post-btn {
    background: none;
    border: none;
    cursor: pointer;
}



/* --- main header --- */
/* static/css/header.css */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Höhe deines Headers */
    background: #fff;
    border: 1px solid var(--border);
    color: black;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

/* Die Klasse zum Verstecken */
.header--hidden {
    transform: translateY(-100%);
}

/* Container für Pfeil und Titel */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen dem Pfeil und "TIMELINE EXPERIMENT" */
}

/* Den Titel von Standard-Abständen befreien, sonst zentriert er sich seltsam */
.header-left h2 {
    margin: 0;
    font-size: 1.2rem;
}

/* Styling für den Zurück-Pfeil */
.back-btn {
    color: black; /* Passt zum Darkmode-Header */
    text-decoration: none; /* Unterstrich weg */
    font-size: 1.8rem; /* Schön groß und klickbar */
    transition: opacity 0.2s; /* Weicher Hover-Effekt */
}

.back-btn:hover {
    opacity: 0.7; /* Wird leicht transparent, wenn man mit der Maus drübergeht */
}