@import url('/assets/fonts/fonts.css');

:root {
    --st-bg: #080a0d;
    --st-panel: #0d1117;
    --st-panel-2: #11161d;
    --st-gold: #d9a441;
    --st-gold-bright: #f1c15a;
    --st-text: #f3f4f6;
    --st-muted: #9aa3ad;
    --st-border: rgba(217,164,65,.38);
    --st-border-soft: rgba(255,255,255,.08);
}

html, body {
    background: var(--st-bg);
    color: var(--st-text);
}

body {
    margin: 0;
    font-family: Rajdhani, Arial, sans-serif;
}

.slacker-timeline-page {
    min-height: 100vh;
    padding: 54px 24px 90px;
    background:
        radial-gradient(circle at 50% 12%, rgba(217,164,65,.08), transparent 30%),
        linear-gradient(180deg, #080a0d 0%, #0a0d12 55%, #080a0d 100%);
}

.timeline-hero {
    max-width: 1000px;
    margin: 0 auto 55px;
    text-align: center;
}

.timeline-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.timeline-kicker {
    margin-bottom: 10px;
    color: var(--st-gold-bright);
    font: 700 12px/1 Orbitron, sans-serif;
    letter-spacing: .28em;
}

.timeline-hero h1 {
    margin: 0;
    font: 900 clamp(42px, 7vw, 78px)/.95 Orbitron, sans-serif;
    letter-spacing: .02em;
    color: #f4f5f6;
}

.timeline-hero h1::first-letter {
    color: var(--st-gold-bright);
}

.timeline-hero p {
    max-width: 680px;
    margin: 20px auto 0;
    color: var(--st-muted);
    font-size: 18px;
    line-height: 1.45;
}

.timeline-list {
    position: relative;
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 8px 0 30px;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        transparent,
        var(--st-gold) 3%,
        rgba(217,164,65,.35) 96%,
        transparent
    );
    box-shadow: 0 0 18px rgba(217,164,65,.18);
}

.timeline-year {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin: 28px 0 18px;
}

.timeline-year span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 8px 18px;
    border: 1px solid var(--st-gold);
    border-radius: 999px;
    background: #0b0e12;
    color: var(--st-gold-bright);
    box-shadow: 0 0 20px rgba(217,164,65,.10);
    font: 800 18px/1 Orbitron, sans-serif;
}

 .timeline-row {
    position: relative;
    width: 100%;
    display: flex;
    margin: 0 0 28px;
    box-sizing: border-box;
}

.timeline-row::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border: 3px solid var(--st-bg);
    border-radius: 50%;
    background: var(--st-gold-bright);
    box-shadow: 0 0 0 2px var(--st-gold), 0 0 16px rgba(217,164,65,.45);
    z-index: 4;
}

.timeline-row--left {
    justify-content: flex-start;
    padding-right: calc(50% + 34px);
}

.timeline-row--left::after {
    left: calc(50% - 34px);
}

.timeline-row--right {
    justify-content: flex-end;
    padding-left: calc(50% + 34px);
}

.timeline-row--right::after {
    left: calc(50% + 34px);
}

.timeline-card {
    position: relative;
    width: 100%;
    min-height: 140px;
    padding: 20px 24px;
    border: 1px solid var(--st-border);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(18,23,30,.98), rgba(10,13,18,.98));
    box-shadow:
        0 16px 40px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.035);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.timeline-card--history {
    border-color: rgba(241,193,90,.72);
    background:
        radial-gradient(circle at 90% 10%, rgba(241,193,90,.10), transparent 30%),
        linear-gradient(145deg, rgba(28,23,14,.98), rgba(10,13,18,.98));
    box-shadow: 0 18px 50px rgba(0,0,0,.30), 0 0 30px rgba(217,164,65,.09), inset 0 1px 0 rgba(255,255,255,.04);
}

.timeline-history-mark {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 5px 8px;
    border: 1px solid rgba(241,193,90,.28);
    border-radius: 999px;
    color: var(--st-gold-bright);
    background: rgba(217,164,65,.07);
    font: 700 9px/1 Orbitron, sans-serif;
    letter-spacing: .08em;
}

.timeline-card:hover {
    transform: translateY(-2px);
    border-color: rgba(241,193,90,.72);
    box-shadow:
        0 20px 50px rgba(0,0,0,.32),
        0 0 28px rgba(217,164,65,.08);
}

.timeline-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.timeline-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(217,164,65,.55);
    border-radius: 7px;
    color: var(--st-gold-bright);
    font: 700 11px/1 Orbitron, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.timeline-icon {
    color: var(--st-gold-bright);
    font-size: 15px;
}

.timeline-card time {
    flex: 0 0 auto;
    color: #aeb6c0;
    font: 600 12px/1 Rajdhani, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.timeline-card h2 {
    margin: 0 0 9px;
    color: var(--st-text);
    font: 800 21px/1.1 Orbitron, sans-serif;
    letter-spacing: .01em;
}

.timeline-description {
    margin: 0;
    max-width: 680px;
    color: #aeb6c0;
    font-size: 16px;
    line-height: 1.42;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--st-border-soft);
}

.timeline-meta span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-meta strong {
    color: #f3f4f6;
    font: 800 16px/1 Orbitron, sans-serif;
}

.timeline-meta small {
    color: var(--st-muted);
    font-size: 12px;
}

.timeline-arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: var(--st-gold-bright);
    font: 700 24px/1 Arial, sans-serif;
    text-decoration: none;
    opacity: .8;
    transition: opacity .18s ease, transform .18s ease;
}

.timeline-arrow:hover {
    opacity: 1;
    transform: translateX(3px);
}

.timeline-empty {
    width: min(720px, 100%);
    margin: 40px auto 0;
    padding: 48px 30px;
    text-align: center;
    border: 1px solid var(--st-border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(18,23,30,.98), rgba(10,13,18,.98));
}

.timeline-empty-icon {
    color: var(--st-gold-bright);
    font-size: 30px;
}

.timeline-empty h2 {
    margin: 14px 0 8px;
    font: 800 22px/1.1 Orbitron, sans-serif;
}

.timeline-empty p {
    margin: 0;
    color: var(--st-muted);
    font-size: 16px;
    line-height: 1.45;
}

@media (max-width: 820px) {
    .slacker-timeline-page {
        padding: 34px 14px 60px;
    }

    .timeline-hero {
        margin-bottom: 38px;
    }

    .timeline-list::before {
        left: 15px;
        transform: none;
    }

    .timeline-year {
        justify-content: flex-start;
        padding-left: 0;
        margin-left: 0;
    }

    .timeline-year span {
        min-width: 88px;
        margin-left: 0;
        font-size: 15px;
    }

    .timeline-row--left,
    .timeline-row--right {
        justify-content: flex-start;
        padding: 0 0 0 42px;
    }

    .timeline-row--left::after,
    .timeline-row--right::after {
        left: 9px;
        right: auto;
    }

    .timeline-card {
        min-height: 0;
        padding: 18px;
    }

    .timeline-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .timeline-card time {
        order: -1;
    }

    .timeline-card h2 {
        font-size: 18px;
    }

    .timeline-description {
        font-size: 15px;
    }
}
