/* Styles */

.dynasty-page {
    min-height: 100vh;
}

/* Layout */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--c-primary), var(--c-primary-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    display: flex;
    align-items: flex-start;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--c-primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 1;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    width: 42%;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.timeline-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.timeline-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-cover img {
    transform: scale(1.05);
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--c-text-1);
}

.timeline-period {
    font-size: 14px;
    color: var(--c-primary);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-period::before {
    content: '📅';
    font-size: 12px;
}

.timeline-description {
    font-size: 14px;
    color: var(--c-text-2);
    line-height: 1.6;
    margin-bottom: 12px;
}

.timeline-actions {
    display: flex;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
}
