/* css/page-history.css */

/* --- HERO (Tytuł) --- */
.history-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 auto;
    /* ZMIANA: Zwiększona szerokość, żeby tekst się nie łamał */
    max-width: 900px;
}

/* --- UKŁAD TIMELINE --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 100px;
    padding-left: 30px;
}

/* Linia pionowa */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Kropka na osi */
.timeline-marker {
    position: absolute;
    left: -26px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--bg-main);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Karta z treścią zmiany */
.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

/* --- NAGŁÓWEK WERSJI --- */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.version-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.version-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- LISTA ZMIAN --- */
.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    margin-bottom: 12px;
    /* ZMIANA: Jaśniejszy kolor tekstu dla czytelności */
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* --- BADGES (New, Improved, Fix) --- */
.changelog-list li::before {
    content: '';
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

/* NEW: Używamy --accent-primary (Indigo) */
.changelog-list li.type-new::before {
    content: 'NEW';
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* IMPROVED: Używamy --accent-secondary (Cyan) */
.changelog-list li.type-improved::before {
    content: 'UPDATE';
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* FIX: Kolor czerwony */
.changelog-list li.type-fix::before {
    content: 'FIX';
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Stopka osi czasu */
.timeline-end {
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
}

.timeline-end a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

/* RWD */
@media (max-width: 768px) {
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-marker {
        left: -27px;
    }
}