.story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: left;
    height: 60px;
    padding: 0 15px;
    box-sizing: border-box;
    background: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    color: #1a4b8c;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: rgba(26, 75, 140, 0.1);
}

.header-content {
    flex: 1;
}

header h1 {
    margin: 0;
    font-size: 18px;
}

.story-summary {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin-left: 45px;
}

/* Base timeline line */
.timeline::before {
    content: '';
    position: absolute;
    left: -45px;
    width: 25px;
    height: 100%;
    background-color: #3f99b0; /* Default blue color for unread_timeline */
    border-radius: 12.5px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 30px;
}

/* Base dot style - keep consistent border */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -45px;
    top: 20px;
    width: 21px;
    height: 21px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

/* New event styles - red timeline */
.timeline-item[data-read-status="new"]::before {
    background-color: #8e1f22;
}

/* Read event styles - grey timeline */
.timeline-item[data-read-status="read"]::before {
    background-color: #c0c0c0;
}

/* Add a pseudo-element for the line between dots */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 41px; /* Position after the dot */
    width: 25px;
    height: calc(100% + 10px); /* Extend to next dot */
    background-color: #3f99b0; /* Default blue color */
    z-index: -1;
}

/* Last item shouldn't have a line after it */
.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content p {
    margin: 0;
    line-height: 1.5;
}

.timeline-date {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.timeline-date-pill {
    display: inline-block;
    background-color: #e8f4f8;
    color: #2c5aa0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .story-container {
        padding: 5px;
    }
    
    .timeline {
        padding: 10px 0;
        margin-left: 25px;
    }
    
    .timeline::before {
        left: -32px;
        width: 20px;
    }
    
    .timeline-item {
        padding-left: 0px;
        margin-bottom: 20px;
    }
    
    .timeline-item::after {
        left: -32px;
        top: 15px;
        width: 15px;
        height: 15px;
    }
    
    .timeline-content {
        padding: 12px;
        border-radius: 6px;
    }
} 