/* ═══════════════════════════════════════════════════════════════
   RECENT / TIMELINE PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   AMBIENT SPLASHES - Yellow/Orange accent for Recent page
   ─────────────────────────────────────────────────────────────── */
.splash--yellow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-yellow);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.splash--yellow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-yellow);
    bottom: 20%;
    right: 10%;
    animation-delay: -8s;
    animation-duration: 30s;
}

.splash--orange-1 {
    width: 350px;
    height: 350px;
    background: var(--accent-red);
    top: 50%;
    right: 25%;
    animation-delay: -12s;
    animation-duration: 28s;
}

/* ───────────────────────────────────────────────────────────────
   PAGE HERO - Cinematic
   ─────────────────────────────────────────────────────────────── */
.page-hero {
    margin-bottom: var(--space-2xl);
    animation: fadeSlideUp 0.7s var(--ease-dramatic) backwards;
}

.page-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.page-hero-eyebrow-line {
    width: 32px;
    height: 2px;
    background: var(--accent-yellow);
    border-radius: var(--radius-full);
    position: relative;
}

.page-hero-eyebrow-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-yellow);
    filter: blur(6px);
    opacity: 0.5;
}

.page-hero-eyebrow-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 10vw, var(--text-5xl));
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.page-hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.7;
}

/* ───────────────────────────────────────────────────────────────
   TIMELINE - Alternating Left/Right with Centered Line
   ─────────────────────────────────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Central vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--border-default) 5%,
        var(--border-default) 95%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    padding-bottom: var(--space-xl);
    animation: fadeSlideUp 0.8s var(--ease-dramatic) backwards;
}

/* Staggered animation delays */
.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.2s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }
.timeline-item:nth-child(6) { animation-delay: 0.3s; }
.timeline-item:nth-child(7) { animation-delay: 0.35s; }
.timeline-item:nth-child(8) { animation-delay: 0.4s; }
.timeline-item:nth-child(9) { animation-delay: 0.45s; }
.timeline-item:nth-child(10) { animation-delay: 0.5s; }
.timeline-item:nth-child(11) { animation-delay: 0.55s; }
.timeline-item:nth-child(12) { animation-delay: 0.6s; }
.timeline-item:nth-child(13) { animation-delay: 0.65s; }
.timeline-item:nth-child(14) { animation-delay: 0.7s; }
.timeline-item:nth-child(15) { animation-delay: 0.75s; }

/* Odd items: LEFT side */
.timeline-item:nth-child(odd) {
    padding-right: calc(50% + var(--space-xl));
    margin-left: 0;
}

/* Even items: RIGHT side */
.timeline-item:nth-child(even) {
    padding-left: calc(50% + var(--space-xl));
    margin-left: 0;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Timeline marker - positioned at center line */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: var(--space-lg);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--accent);
    border: 3px solid var(--bg-base);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent),
        0 0 20px var(--accent);
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid var(--accent);
    opacity: 0.3;
}

/* Hide individual lines - using central line instead */
.timeline-line {
    display: none;
}

/* Connector line from dot to card */
.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(var(--space-xl) - 8px);
    height: 2px;
    transform: translateY(-50%);
}

/* Odd (left side): connector goes left from marker to content */
.timeline-item:nth-child(odd) .timeline-marker::after {
    right: calc(100% + 4px);
    background: linear-gradient(
        to left,
        color-mix(in srgb, var(--accent) 50%, transparent),
        color-mix(in srgb, var(--accent) 15%, transparent)
    );
}

/* Even (right side): connector goes right from marker to content */
.timeline-item:nth-child(even) .timeline-marker::after {
    left: calc(100% + 4px);
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--accent) 50%, transparent),
        color-mix(in srgb, var(--accent) 15%, transparent)
    );
}

/* Timeline content */
.timeline-content {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: var(--border-thin) solid var(--border-subtle);
    padding: var(--space-lg);
    transition:
        border-color var(--transition-slow),
        box-shadow var(--transition-slower),
        transform var(--transition-base);
}

/* Odd items: text align right */
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-header {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-end;
}

/* Even items: text align left (default) */
.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

/* Hover effects */
.timeline-item:nth-child(odd):hover .timeline-content {
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    box-shadow: 0 4px 50px -15px var(--accent);
    transform: translateX(-4px);
}

.timeline-item:nth-child(even):hover .timeline-content {
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    box-shadow: 0 4px 50px -15px var(--accent);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.timeline-date {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.timeline-badge {
    padding: 4px 10px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timeline-badge--active {
    color: var(--accent-green);
    background: color-mix(in srgb, var(--accent-green) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-green) 20%, transparent);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    transition: color var(--transition-base);
}

.timeline-item:hover .timeline-title {
    color: var(--accent);
}

.timeline-description {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.timeline-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.timeline-tag {
    padding: 4px 8px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-radius: var(--radius-xs);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .page-hero {
        margin-bottom: var(--space-xl);
    }

    .page-hero-title {
        font-size: var(--text-4xl);
    }

    .page-hero-subtitle {
        font-size: var(--text-base);
    }

    /* Collapse to single column on mobile */
    .timeline {
        padding-left: calc(var(--space-2xl) + 8px);
        padding-right: var(--space-md);
    }

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
    }

    .timeline-marker {
        left: -28px;
        transform: none;
    }

    /* Reset text alignment to left for all */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-header,
    .timeline-item:nth-child(even) .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item:nth-child(odd) .timeline-tags,
    .timeline-item:nth-child(even) .timeline-tags {
        justify-content: flex-start;
    }

    /* Hide connectors on mobile */
    .timeline-item:nth-child(odd) .timeline-marker::after,
    .timeline-item:nth-child(even) .timeline-marker::after {
        display: none;
    }

    /* Hover moves right for all */
    .timeline-item:nth-child(odd):hover .timeline-content,
    .timeline-item:nth-child(even):hover .timeline-content {
        transform: translateX(4px);
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
    }

    .timeline-dot::after {
        inset: -6px;
    }

    .timeline-content {
        padding: var(--space-md);
    }

    .timeline-header {
        gap: var(--space-xs);
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-description {
        font-size: var(--text-sm);
    }
}
