/* CSS Variables from 2ndindexstyle are available */

.timeline-main {
    margin-left: 250px;
    /* Sidebar width approx */
    padding: 40px;
    width: calc(100% - 250px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Header */
.timeline-header-block {
    text-align: center;
    margin-bottom: 50px;
}

.timeline-header-block h1 {
    font-family: 'Monoton', cursive;
    font-size: 3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-blue);
    margin: 0;
    letter-spacing: 2px;
}

.stream-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 5px #0f0;
    animation: blink 1s infinite;
}

.status-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
}

/* Timeline Container */
.timeline-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    padding-left: 30px;
    /* Space for the line */
}

/* The Vertical Line */
.central-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 243, 255, 0) 0%,
            rgba(0, 243, 255, 0.5) 20%,
            rgba(0, 243, 255, 0.5) 80%,
            rgba(0, 243, 255, 0) 100%);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Post Cards */
.post-card {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    /* Slightly rounded */
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.post-card::before {
    /* Connector dot */
    content: '';
    position: absolute;
    top: 30px;
    left: -36px;
    /* Adjust based on container padding */
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-cyan);
    z-index: 2;
}

.post-card::after {
    /* Connector line */
    content: '';
    position: absolute;
    top: 35px;
    left: -30px;
    width: 30px;
    height: 2px;
    background: rgba(0, 243, 255, 0.3);
}

.post-card:hover {
    border-color: var(--neon-cyan);
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0, 243, 255, 0.1);
}

/* Post Content */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-pink);
    object-fit: cover;
}

.author-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-pink);
    font-weight: bold;
    font-size: 1.1rem;
}

.post-time {
    font-family: 'Source Code Pro', monospace;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.post-body {
    font-family: 'Poppins', sans-serif;
    color: #e0faff;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
    /* Preserve line breaks */
}

.post-image {
    margin-top: 15px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Tags/Badges */
.post-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.tag {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-main {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .timeline-header-block h1 {
        font-size: 2rem;
    }

    .post-card::before,
    .post-card::after {
        display: none;
        /* Hide connectors on mobile if tight */
    }

    .timeline-container {
        padding-left: 0;
    }

    .central-line {
        display: none;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}