@font-face {
    font-family: 'Google Sans Flex';
    font-style: normal;
    font-display: swap;
    font-weight: 100 1000;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/google-sans-flex:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}

:root {
    --bg-main: #000000;
    --text-primary: #c9d1d9;
    --text-header: #ffffff;
    --text-muted: #8b949e;
    
    --link-color: #58a6ff;
    --link-hover: #79c0ff;
    
    --hr-color: #30363d;
    --hover-bg: #161b22;
}

/* ==========================================================================
   Base Elements
   ========================================================================== */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    padding: 1.5rem;
    margin: 0;
}

h1 {
    font-size: 1.6rem;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-header);
}

hr {
    border: 0;
    border-top: 1px solid var(--hr-color);
    margin: 1rem 0;
}

/* ==========================================================================
   Table Format (Directory Listing)
   ========================================================================== */
table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

th {
    text-align: left;
    font-weight: bold;
    color: var(--text-header);
    border-bottom: 1px solid var(--hr-color);
    padding: 0.5rem 0.75rem 0.5rem 0;
}

td {
    padding: 0.35rem 0.75rem 0.35rem 0;
    vertical-align: middle;
}

tr.listing-row:hover {
    background-color: var(--hover-bg);
}

/* Column Alignment & Widths */
.col-name {
    text-align: left;
}

.col-date {
    width: 220px;
    text-align: left;
}

.col-size {
    width: 110px;
    text-align: right;
}

.col-dl {
    width: 110px;
    text-align: right;
}

/* Text alignment overrides for tbody cells */
td.col-size, td.col-dl {
    text-align: right;
}

/* ==========================================================================
   Links & Typography
   ========================================================================== */
a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.footer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1.5rem;
    display: block;
}

.footer a {
    color: var(--link-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.footer .dot {
    margin: 0 0.5rem;
    color: var(--hr-color);
}

/* ==========================================================================
   Special States
   ========================================================================== */
.status-msg {
    text-align: left;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0;
}

.status-msg.error {
    color: #f85149;
}

.status-msg button {
    background: transparent;
    border: 1px solid #f85149;
    color: #f85149;
    padding: 0.15rem 0.5rem;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.status-msg button:hover {
    background-color: rgba(248, 81, 73, 0.1);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Changelog Card Styling
   ========================================================================== */
.changelog-container {
    max-width: 900px;
    margin: 1.5rem 0;
    border: 1px solid var(--hr-color);
    background-color: var(--bg-main);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--text-header);
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s, border-bottom-color 0.2s;
}

.changelog-header:hover {
    background-color: var(--hover-bg);
}

.changelog-header.active {
    border-bottom-color: var(--hr-color);
}

.changelog-title {
    font-size: 13px;
    letter-spacing: 0.5px;
}

.changelog-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.changelog-header.active .changelog-arrow {
    transform: rotate(180deg);
}

.changelog-content {
    padding: 1rem 1.25rem;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
}

.changelog-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.changelog-content li {
    margin-bottom: 0.5rem;
}

.changelog-content li:last-child {
    margin-bottom: 0;
}

.tag-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border-radius: 3px;
    margin-right: 0.5rem;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Tag Styles */
.tag-default {
    background-color: #30363d;
    color: #c9d1d9;
    border: 1px solid #8b949e;
}

.tag-hotfix {
    background-color: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.4);
}

.tag-update {
    background-color: rgba(56, 139, 253, 0.15);
    color: #58a6ff;
    border: 1px solid rgba(56, 139, 253, 0.4);
}

.tag-fix {
    background-color: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.4);
}

.changelog-error {
    color: #f85149;
    font-style: italic;
}

.changelog-error button {
    background: transparent;
    border: 1px solid #f85149;
    color: #f85149;
    padding: 0.15rem 0.5rem;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.changelog-error button:hover {
    background-color: rgba(248, 81, 73, 0.1);
}

/* ==========================================================================
   Changelog Page Styling
   ========================================================================== */
.changelog-page-container {
    max-width: 900px;
    margin: 0 auto;
}

.changelog-page-header {
    margin-bottom: 2rem;
}

.back-link {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.changelog-page-body {
    background-color: var(--bg-main);
    line-height: 1.7;
    font-size: 13px;
}

.changelog-page-body ul {
    margin: 0;
    padding-left: 1.25rem;
}

.changelog-page-body li {
    margin-bottom: 0.75rem;
}

.changelog-page-body li:last-child {
    margin-bottom: 0;
}


