
.changelog-modal-content {
   
    max-width: 650px !important;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
}

.changelog-modal-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.changelog-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    background-clip: text;
}

#changelog-modal-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}


#changelog-modal-content::-webkit-scrollbar {
    width: 1px;
}

#changelog-modal-content::-webkit-scrollbar-thumb {
    background-color: #ffffff3f;
    border-radius: 10px;
}

#changelog-modal-content::-webkit-scrollbar-track {
    background: transparent;
}


#changelog-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.changelog-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.changelog-error {
    text-align: center;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 0.95rem;
}


.version-container {
    overflow: hidden;
}

.version-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.version-date {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 5px;
}

.version-content {
    padding: 0 24px;
}


.changelog-section {
    margin-bottom: 20px;
}

.section-header {
    margin-bottom: 12px;
}


.changelog-tag {
    --tag-bg: rgba(255, 255, 255, 0.1);
    --tag-border: rgba(255, 255, 255, 0.18);
    --tag-text: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    min-height: 26px;
    padding: 6px 12px;
    border: 1px solid var(--tag-border);
    border-radius: 999px;
    background: var(--tag-bg);
    color: var(--tag-text);
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tag-fixed {
    --tag-bg: rgba(244, 127, 117, 0.16);
    --tag-border: rgba(244, 127, 117, 0.42);
    --tag-text: #ffdeda;
}

.tag-improved {
    --tag-bg: rgba(240, 201, 107, 0.16);
    --tag-border: rgba(240, 201, 107, 0.42);
    --tag-text: #fff2c8;
}

.tag-new {
    --tag-bg: rgba(84, 214, 179, 0.16);
    --tag-border: rgba(84, 214, 179, 0.44);
    --tag-text: #ddfff5;
}

.tag-patched {
    --tag-bg: rgba(163, 149, 255, 0.16);
    --tag-border: rgba(163, 149, 255, 0.4);
    --tag-text: #ebe8ff;
}


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

.changelog-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-item:before {
    content: '•';
    color: rgba(255, 255, 255, 0.5);
    margin-right: 8px;
}

.changelog-sub-item {
    padding-left: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.changelog-sub-item:before {
    content: '◦';
    color: rgba(255, 255, 255, 0.4);
}


.changelog-modal-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.view-all-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid rgba(84, 214, 179, 0.46);
    border-radius: 8px;
    background: rgba(84, 214, 179, 0.15);
    color: #ffffff;
    text-decoration: none;
    font-family: 'InfraBold', 'InfraRegular', monospace;
    font-size: 0.86rem;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.view-all-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 0.18s ease;
}

.view-all-link:hover {
    border-color: rgba(84, 214, 179, 0.72);
    background: rgba(84, 214, 179, 0.24);
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.view-all-link:hover svg {
    transform: translateX(3px);
}

.view-all-link:focus-visible {
    outline: 2px solid rgba(84, 214, 179, 0.78);
    outline-offset: 3px;
}

body.dtemp-preview .changelog-tag {
    box-shadow: none;
}

body.dtemp-preview .tag-new {
    --tag-bg: rgba(39, 157, 132, 0.15);
    --tag-border: rgba(39, 157, 132, 0.38);
    --tag-text: #075345;
}

body.dtemp-preview .tag-improved {
    --tag-bg: rgba(201, 143, 45, 0.15);
    --tag-border: rgba(161, 105, 18, 0.36);
    --tag-text: #5b3d08;
}

body.dtemp-preview .tag-fixed {
    --tag-bg: rgba(196, 70, 70, 0.13);
    --tag-border: rgba(168, 55, 55, 0.34);
    --tag-text: #6b1010;
}

body.dtemp-preview .tag-patched {
    --tag-bg: rgba(91, 93, 153, 0.13);
    --tag-border: rgba(91, 93, 153, 0.34);
    --tag-text: #34365f;
}

body.dtemp-preview .view-all-link {
    border-color: var(--preview-accent-border);
    background: var(--preview-accent-bg);
    color: var(--preview-module-text);
}

body.dtemp-preview .view-all-link:hover {
    background: var(--preview-control-bg-hover);
    color: var(--preview-module-text);
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-new {
    --tag-bg: rgba(84, 214, 179, 0.16);
    --tag-border: rgba(84, 214, 179, 0.42);
    --tag-text: #ddfff5;
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-improved {
    --tag-bg: rgba(240, 201, 107, 0.16);
    --tag-border: rgba(240, 201, 107, 0.42);
    --tag-text: #fff2c8;
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-fixed {
    --tag-bg: rgba(244, 127, 117, 0.16);
    --tag-border: rgba(244, 127, 117, 0.42);
    --tag-text: #ffdeda;
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-patched {
    --tag-bg: rgba(163, 149, 255, 0.16);
    --tag-border: rgba(163, 149, 255, 0.4);
    --tag-text: #ebe8ff;
}


@media (max-width: 768px) {
    .changelog-modal-content {
        width: 95%;
        max-height: 75vh;
        padding: 16px;
    }

    .version-content {
        padding: 0 20px 16px;
    }
    
    .changelog-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .version-title {
        font-size: 1.2rem;
    }
    
    .version-date {
        font-size: 0.8rem;
    }
    
    .changelog-tag {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    
    .view-all-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}
