/**
 * Site Updates Timeline Styles
 * Loaded only on the Site Updates page
 * Optimized for Expertly theme containers
 */

/* Breadcrumbs styling */
.rank-math-breadcrumbs-container {
    margin-bottom: 30px;
    padding: 15px 0;
}

.rank-math-breadcrumbs-container .rank-math-breadcrumbs {
    font-size: 14px;
    color: #666;
}

.rank-math-breadcrumbs-container .rank-math-breadcrumbs a {
    color: #e0719e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rank-math-breadcrumbs-container .rank-math-breadcrumbs a:hover {
    color: #4a90e2;
}

/* Content area - matches Expertly theme */
.site-updates-content {
    max-width: 100%;
}

.site-updates-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Entry header improvements */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Timeline container */
.site-updates-timeline {
    margin-top: 60px;
    position: relative;
    padding-left: 60px;
}

.site-updates-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e0719e, #4a90e2);
    border-radius: 2px;
}

.timeline-year-group {
    margin-bottom: 60px;
    position: relative;
}

.timeline-year-marker {
    position: absolute;
    left: -80px;
    top: 0;
    font-size: 24px;
    font-weight: 700;
    color: #e0719e;
    background: #fff;
    padding: 5px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 3;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: #e0719e;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.timeline-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #e0719e, #4a90e2);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(224, 113, 158, 0.3);
}

.timeline-month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.timeline-day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e0719e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.timeline-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.timeline-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.timeline-excerpt p {
    margin: 0 0 10px 0;
}

.timeline-excerpt p:last-child {
    margin-bottom: 0;
}

.no-updates {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Entry footer */
.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #999;
}

.entry-footer .edit-link a {
    color: #e0719e;
    text-decoration: none;
}

.entry-footer .edit-link a:hover {
    color: #4a90e2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-title {
        font-size: 28px;
    }
    
    .site-updates-timeline {
        padding-left: 40px;
    }
    
    .site-updates-timeline::before {
        left: 15px;
    }
    
    .timeline-year-marker {
        left: -60px;
        font-size: 18px;
        padding: 4px 10px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 15px;
        padding-left: 10px;
    }
    
    .timeline-item::before {
        left: -35px;
    }
    
    .timeline-date {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .site-updates-page {
        padding: 20px 15px;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .site-updates-timeline {
        padding-left: 30px;
    }
    
    .site-updates-timeline::before {
        left: 10px;
        width: 2px;
    }
    
    .timeline-year-marker {
        left: -50px;
        font-size: 16px;
        padding: 3px 8px;
    }
    
    .timeline-item::before {
        left: -25px;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-title {
        font-size: 18px;
    }
}
