/* ==================== CHAPTERS TIMELINE STYLES ==================== */
/* Add to map.css or include separately */

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #8fbc3f, #ffd700, #ff6b35);
    border-radius: 2px;
    transform: translateX(50%);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding-right: 40px;
    padding-left: 20px;
}

.timeline-item:nth-child(even) {
    margin-right: 50%;
    padding-right: 20px;
    padding-left: 40px;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    top: 0;
    right: -20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8fbc3f, #6b8e23);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(143, 188, 63, 0.4);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -20px;
}

/* Timeline Content */
.timeline-content {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(143, 188, 63, 0.3);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(143, 188, 63, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Timeline Header */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-chapter-num {
    color: #8fbc3f;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Timeline Title */
.timeline-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-title a:hover {
    color: #8fbc3f;
}

.timeline-title a.disabled-link {
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5);
}

/* Timeline Location */
.timeline-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.timeline-location i {
    color: #ffd700;
    margin-left: 5px;
}

/* Timeline Description */
.timeline-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Timeline Meta */
.timeline-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.timeline-meta .read-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.timeline-meta .read-time i {
    margin-left: 5px;
    color: #8fbc3f;
}

/* Status Variants */

/* Locked */
.timeline-locked .timeline-marker {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.timeline-locked .timeline-content {
    border-color: rgba(108, 117, 125, 0.3);
    opacity: 0.7;
}

.timeline-locked .timeline-title {
    color: rgba(255, 255, 255, 0.5);
}

/* Completed */
.timeline-completed .timeline-marker {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.timeline-completed .timeline-content {
    border-color: rgba(40, 167, 69, 0.3);
}

/* Unlocked / Available */
.timeline-unlocked .timeline-marker {
    background: linear-gradient(135deg, #007bff, #00a8cc);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(0, 123, 255, 0.7);
    }
}

.timeline-unlocked .timeline-content {
    border-color: rgba(0, 123, 255, 0.4);
}

/* Coming Soon */
.timeline-coming-soon .timeline-marker {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.timeline-coming-soon .timeline-content {
    border-color: rgba(255, 193, 7, 0.3);
    border-style: dashed;
}

.timeline-coming-soon .timeline-title {
    color: rgba(255, 255, 255, 0.6);
}

/* Button styling */
.timeline-content .btn-outline-primary {
    color: #8fbc3f;
    border-color: #8fbc3f;
}

.timeline-content .btn-outline-primary:hover {
    background: #8fbc3f;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-wrapper::before {
        right: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-right: 0;
        padding-right: 50px;
        padding-left: 10px;
    }

    .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        right: 0;
        left: auto;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 20px;
    }
}