/* enhanced-timeline.css - Modern Card-Based Timeline */

.timeline-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, #FAF8F3 0%, #E8EDE5 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(168, 183, 158, 0.18) 0%, rgba(168, 183, 158, 0.09) 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.timeline-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 132, 113, 0.08) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Enhanced header with subtitle */
.timeline-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 1;
}

.timeline-header h2 {
    font-size: 3rem;
    color: #5A6051;
    margin-bottom: 15px;
    font-weight: 300;
    position: relative;
    display: inline-block;
}

.timeline-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #A8B79E, #7C8471);
    border-radius: 2px;
}

.timeline-header p {
    font-size: 1.2rem;
    color: #6B7A6D;
    line-height: 1.8;
    margin-top: 25px;
}

/* New card-based timeline container */
.timeline-cards {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Timeline card styling */
.timeline-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(124, 132, 113, 0.08);
    border: 1px solid rgba(168, 183, 158, 0.2);
    overflow: hidden;
    cursor: pointer;
}

/* Gradient overlay for cards */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #A8B79E, #7C8471);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.timeline-card:hover::before {
    transform: scaleX(1);
}

/* Card hover effects */
.timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(124, 132, 113, 0.15);
    border-color: #A8B79E;
}

/* Time badge */
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #E8EDE5, #C5D3C0);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5A6051;
    letter-spacing: 0.5px;
}

.time-badge::before {
    content: '🕐';
    font-size: 1rem;
}

/* Card icon */
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(168, 183, 158, 0.2), rgba(124, 132, 113, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-card:hover .card-icon {
    transform: rotate(-5deg) scale(1.1);
    background: linear-gradient(135deg, #A8B79E, #7C8471);
}

/* Card content */
.card-content h3 {
    color: #5A6051;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-content p {
    color: #6B7A6D;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Activity tags */
.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-tag {
    background: rgba(168, 183, 158, 0.1);
    color: #7C8471;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(168, 183, 158, 0.3);
    transition: all 0.3s ease;
}

.timeline-card:hover .activity-tag {
    background: #A8B79E;
    color: white;
    border-color: #A8B79E;
}

/* Special highlight for certain times */
.timeline-card.highlight {
    background: linear-gradient(135deg, rgba(232, 237, 229, 0.5), white);
    border-color: #7C8471;
}

.timeline-card.highlight .time-badge {
    background: linear-gradient(135deg, #7C8471, #5A6051);
    color: white;
}

/* Progress indicator */
.day-progress {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 30px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(124, 132, 113, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-title {
    font-size: 1.1rem;
    color: #5A6051;
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.2rem;
    color: #7C8471;
    font-weight: 700;
}

.progress-bar-container {
    height: 12px;
    background: #E8EDE5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #A8B79E, #7C8471);
    border-radius: 20px;
    width: 0%;
    transition: width 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Animated elements */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Current time indicator */
.current-time-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4ade80;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease infinite;
    display: none;
}

.timeline-card.current .current-time-indicator {
    display: block;
}

/* Alternative: Vertical scrolling timeline */
.timeline-vertical {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: none; /* Toggle this with JavaScript */
}

.timeline-vertical-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #A8B79E 0%, #7C8471 50%, #A8B79E 100%);
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .timeline-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .timeline-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline-header h2 {
        font-size: 2.2rem;
    }
    
    .timeline-card {
        padding: 25px;
    }
}