@import './pages/history.css';

.title-inline {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.3rem; /* más pequeño */
    white-space: nowrap;
    margin: 0;
}

.history-flag {
    width: 18px; /* proporcional al texto */
    height: auto;
}


.page-history {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 3.5rem 3rem 2.5rem;
    min-height: auto;
    width: 100%;
}

.history-container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.history-container h3 {
    margin: 0 0 1rem;
    font-family: "Lexend Deca", sans-serif;
    font-size: 51.4285714286px;
    line-height: 52px;
    font-weight: 700;
    letter-spacing: -2px;
}

.history-container h3::before,
.history-container h3::after {
    content: none;
    display: none;
}

.history-container p {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.6;
    word-break: break-word;
}

.page-history h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--color-text, #ffffff);
    opacity: 0.2;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.timeline-entry:nth-child(even) {
    direction: rtl;
}

.timeline-entry:nth-child(even) .timeline-content {
    direction: ltr;
}

.timeline-date {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent, #ff6b6b);
    padding-right: 2rem;
}

.timeline-entry:nth-child(even) .timeline-date {
    text-align: left;
    padding-right: 0;
    padding-left: 2rem;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--color-surface, rgba(255, 255, 255, 0.05));
    border-radius: 0.5rem;
    border-left: 3px solid var(--color-accent, #ff6b6b);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-entry:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--color-accent, #ff6b6b);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.timeline-player {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.timeline-image {
    width: 100%;
    max-width: 15rem;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.history-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.history-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-date {
    font-size: 1.2rem;
    font-weight: 300;
}

.history-level {
    font-size: 2rem;
    font-weight: 700;
}

.history-player {
    font-size: 1.4rem;
    font-weight: 500;
}

.history-entry img {
    height: auto;
    border-radius: 0.5rem;
}

.history-flag {
    width: 10%;
    border-radius: 5px;
}

@media (max-width: 48rem) {
    .timeline {
        margin-left: 1rem;
    }

    .timeline::before {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        direction: ltr !important;
        gap: 1rem;
    }

    .timeline-entry:nth-child(even) {
        direction: ltr;
    }

    .timeline-date {
        text-align: left;
        padding-right: 0;
        padding-left: 2rem;
    }

    .timeline-entry:nth-child(even) .timeline-date {
        text-align: left;
        padding-left: 2rem;
    }

    .timeline-content {
        border-left: 3px solid var(--color-accent, #ff6b6b);
        border-right: none;
    }

    .timeline-entry:nth-child(even) .timeline-content {
        border-right: none;
        border-left: 3px solid var(--color-accent, #ff6b6b);
    }

    .page-history h1 {
        font-size: 1.5rem;
    }

    .page-history {
        padding: 3rem 1.5rem 2rem;
    }

    .history-container {
        max-width: 100%;
    }

    .history-entry {
        flex-direction: column;
    }
}
