/* Timeline Plugin Frontend Styles */

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 300;
}

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-left {
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.timeline-right {
    justify-content: flex-start;
    padding-left: calc(50% + 40px);
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #667eea;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.timeline-marker:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.3);
}

.timeline-marker-inner {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    margin: 2px;
    transition: all 0.3s ease;
}

.timeline-marker:hover .timeline-marker-inner {
    background: #764ba2;
}

/* Timeline Content */
.timeline-content {
    flex: 1;
    max-width: 500px;
}

.timeline-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Timeline Image */
.timeline-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-card:hover .timeline-image img {
    transform: scale(1.05);
}

/* Timeline Card Content */
.timeline-card-content {
    padding: 25px;
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.timeline-moment-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.timeline-description {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 1rem;
}

.timeline-description p {
    margin-bottom: 15px;
}

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

/* Timeline Footer */
.timeline-footer {
    margin-top: 60px;
    text-align: center;
}

.timeline-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.timeline-stat {
    text-align: center;
}

.timeline-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.timeline-stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Copyright */
.timeline-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ecf0f1;
    margin-top: 40px;
}

.timeline-copyright p {
    margin: 0;
    color: #95a5a6;
    font-size: 0.9rem;
}

.timeline-copyright a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.timeline-copyright a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Empty State */
.timeline-empty {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
}

.timeline-empty-icon {
    margin-bottom: 30px;
    opacity: 0.5;
}

.timeline-empty-icon svg {
    width: 80px;
    height: 80px;
    color: #bdc3c7;
}

.timeline-empty h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-empty p {
    font-size: 1.1rem;
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container {
        padding: 20px 15px;
    }
    
    .timeline-title {
        font-size: 2rem;
    }
    
    .timeline-subtitle {
        font-size: 1rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    .timeline-left,
    .timeline-right {
        justify-content: flex-start;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        max-width: none;
    }
    
    .timeline-card-content {
        padding: 20px;
    }
    
    .timeline-moment-title {
        font-size: 1.2rem;
    }
    
    .timeline-stats {
        gap: 20px;
    }
    
    .timeline-stat-number {
        font-size: 2rem;
    }
    
    .timeline-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .timeline-title {
        font-size: 1.8rem;
    }
    
    .timeline-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-card-content {
        padding: 15px;
    }
    
    .timeline-moment-title {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .timeline-container {
        max-width: none;
        padding: 20px;
    }
    
    .timeline-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .timeline-line,
    .timeline-marker {
        display: none;
    }
    
    .timeline-left,
    .timeline-right {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .timeline-copyright {
        display: none;
    }
}

