/* ============================================================
   LUMA Infinity — Index des Versions (Page /changelog)
   ============================================================ */

.changelog-index {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.4s ease;
}

.changelog-index h1 {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.6rem;
    color: var(--primary-gold, #4f8cff);
    text-shadow: 0 0 12px rgba(79, 140, 255, 0.4);
}

/* Liste des versions */
.versions {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.versions li {
    background: var(--bg-elev1, #141820);
    border: 1px solid var(--border, #2a3442);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.versions li:hover {
    border-color: var(--primary-gold, #4f8cff);
    transform: translateX(6px);
    box-shadow: 0 4px 18px rgba(79, 140, 255, 0.25);
}

/* Lien version */
.versions a {
    display: block;
    color: var(--text, #e8ecf1);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.versions a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .versions li {
        padding: 0.9rem 1rem;
    }

    .versions a {
        font-size: 1rem;
    }
}




/* ============================================================
   LUMA Infinity — Changelog Viewer
   Compatible JSON (Simple / Avancé)
   Auteur : M. HEMERY
============================================================ */

/* Wrapper général */
.cl-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--text, #e8ecf1);
    animation: fadeIn 0.4s ease;
}

/* TITRES */
.cl-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-gold, #4f8cff);
    text-align: center;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 12px rgba(79, 140, 255, 0.4);
}

.cl-subtitle {
    text-align: center;
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* META */
.cl-meta {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-quiet, #b6c0cc);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cl-date {
    opacity: 0.8;
}

/* BADGE VERSION TYPE */
.cl-version-type {
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
}

.cl-version-type.major {
    color: #ff5d73;
    border: 1px solid rgba(255, 93, 115, 0.3);
    background: rgba(255, 93, 115, 0.15);
}

.cl-version-type.minor {
    color: #4f8cff;
    border: 1px solid rgba(79, 140, 255, 0.3);
    background: rgba(79, 140, 255, 0.15);
}

.cl-version-type.patch {
    color: #3ecf8e;
    border: 1px solid rgba(62, 207, 142, 0.3);
    background: rgba(62, 207, 142, 0.15);
}

/* TOGGLE Simple / Avancé */
.cl-toggle {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 2rem 0;
}

.cl-btn {
    background: var(--bg-elev1, #141820);
    color: var(--text-quiet, #b6c0cc);
    border: 1px solid var(--border, #2a3442);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.cl-btn:hover:not(.active) {
    transform: translateY(-2px);
    border-color: var(--primary-gold, #4f8cff);
    color: white;
}

.cl-btn.active {
    background: var(--primary-gold, #4f8cff);
    border-color: var(--primary-gold, #4f8cff);
    color: #0b1a33;
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.4);
    transform: translateY(-2px);
}

/* VUES */
.cl-view {
    display: none;
}

.cl-view.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

/* SECTIONS */
.cl-section {
    background: var(--bg-elev1, #141820);
    padding: 1.6rem;
    border-radius: 12px;
    border: 1px solid var(--border, #2a3442);
    margin-bottom: 1.4rem;
    transition: border-color 0.25s, transform 0.2s;
}

.cl-section:hover {
    border-color: var(--primary-gold, #4f8cff);
    transform: translateX(4px);
}

/* TITRE SECTION */
.cl-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    color: var(--primary-gold, #4f8cff);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.cl-section-title .icon {
    font-size: 1.3rem;
}

/* LISTES */
.cl-section-list {
    list-style: none;
    padding-left: 1.3rem;
}

.cl-section-list li {
    position: relative;
    margin-bottom: 0.4rem;
    color: var(--text-quiet, #b6c0cc);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cl-section-list li::before {
    content: "→";
    position: absolute;
    left: -1.1rem;
    color: var(--primary-gold, #4f8cff);
    font-weight: bold;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cl-wrapper {
        padding: 1rem;
    }

    .cl-title {
        font-size: 1.9rem;
    }

    .cl-section {
        padding: 1.2rem;
    }
}