/* ============================
   BASE
============================ */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: auto;
}

body {
    height: 100%;
    overflow-x: hidden;
}

.updates-body {
    background-color: #220022;
    padding-top: 60px;
    padding-bottom: 150px;
    box-sizing: border-box;
    color: #fff;
}

/* ============================
   SCROLLBAR
============================ */

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
}

body::-webkit-scrollbar-track {
    background-color: transparent;
}

/* ============================
   HEADER
============================ */

.line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #330033;
    z-index: 10;
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.logotext {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.line img {
    width: 50px;
}

.texttop {
    margin-left: 10px;
    font-size: 32px;
    color: #fff;
    white-space: nowrap;
}

/* ============================
   TABLE OF CONTENTS
============================ */

.updates-toc {
    background: linear-gradient(135deg, #1a0033, #2d0052);
    border-left: 4px solid #8F00FF;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.updates-toc h2 {
    text-align: center;
    font-size: 24px;
    margin: 0 0 20px 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list > li {
    margin: 15px 0;
    color: #cbd5e1;
}

.toc-list > li > strong {
    color: #8F00FF;
}

.toc-sublist {
    list-style: none;
    padding-left: 25px;
    margin-top: 10px;
}

.toc-sublist li {
    margin: 8px 0;
    color: #a0aec0;
}

.toc-sublist a {
    color: inherit;
    text-decoration: none;
}

.toc-sublist a:hover {
    color: #8F00FF;
    text-decoration: underline;
}

.toc-divider {
    border-top: 2px solid rgba(143,0,255,0.3);
    margin: 20px 0;
}

/* ============================
   SECTION TITLES
============================ */

.section-title {
    text-align: center;
    font-size: 28px;
    margin-top: 60px;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #a0aec0;
    margin-bottom: 40px;
}

/* ============================
   UPDATE BLOCKS
============================ */

.updates-content {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.update-container {
    max-width: 900px;
    width: 100%;
    background: rgba(0,0,0,0.6);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    line-height: 1.6;
}

.update-container h1 {
    font-size: 32px;
    margin-top: 0;
    text-align: center;
}

.update-container h2 {
    font-size: 22px;
    margin-top: 25px;
}

.update-container p {
    font-size: 16px;
    margin-bottom: 12px;
}

.update-container .intro {
    font-size: 17px;
    margin-bottom: 20px;
}

.update-container .final-note {
    margin-top: 25px;
    font-weight: bold;
}

/* ============================
   SCROLL TO TOP
============================ */

.scroll-to-top {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8F00FF, #7c3aed);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(143,0,255,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 20;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* ============================
   MOBILE ADAPTATION
============================ */

@media (max-width: 768px) {

    .texttop {
        font-size: 32px;
    }

    .updates-toc {
        padding: 20px;
    }

    .update-container {
        padding: 20px 16px;
    }

    .update-container h1 {
        font-size: 26px;
    }

    .update-container h2 {
        font-size: 20px;
    }

    .update-container p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .update-container h1 {
        font-size: 22px;
    }

    .update-container h2 {
        font-size: 18px;
    }

    .update-container p {
        font-size: 14px;
    }
}

/* ============================
   FOOTER
============================ */

body {
    --footer-bg: #330033;
    --footer-text: #fff;
    --footer-link: #8F00FF;
}