/* Global reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* Dark timeless base */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: #050509;
    color: #e5e5e5;

    /* no blue selection anywhere */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page {
    max-width: 1000px; /* a bit wider */
    margin: 40px auto;
    padding: 24px 20px 32px;
    background: #111111;
    border: 1px solid #27272a;
}

/* Header: centered logo + title */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 90px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.app-name {
    margin: 0;
    font-size: 22px;
    color: #fafafa;
}

.tagline {
    margin: 4px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

/* Blocks as panels */
.block {
    background: #18181b;
    border-radius: 6px;
    padding: 16px 14px;
    margin: 16px 0;
    border: 1px solid #27272a;
}

.block-highlight {
    border-color: #3b82f6;
}

.block h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #f4f4f5;
}

.block h3 {
    margin: 12px 0 6px;
    font-size: 14px;
}

/* Lists */
.list {
    padding-left: 18px;
    margin: 6px 0 8px;
}

.list li {
    margin: 2px 0;
}

/* Text bits */
.current-version {
    margin: 0 0 10px;
}

.notes {
    margin-top: 8px;
    color: #d4d4d8;
    font-size: 13px;
}

.small {
    font-size: 12px;
    color: #9ca3af;
}

/* Links (still visible, but not screaming) */
a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Download button style */
.btn-download {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    background: #2563eb;
    color: #f9fafb;
    font-weight: 600;
    border: 1px solid #1d4ed8;
}

.btn-download:hover {
    background: #1d4ed8;
}

/* Accordion (Old versions / Technical info) */

.accordion {
    margin: 0;
}

.accordion > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Remove default marker */
.accordion > summary::-webkit-details-marker {
    display: none;
}

/* Arrow icon via CSS */
.accordion > summary::after {
    content: "▶";
    font-size: 11px;
    margin-left: 8px;
    color: #9ca3af;
    transition: transform 0.15s ease-out;
}

/* Rotate arrow when open */
.accordion[open] > summary::after {
    transform: rotate(90deg);
}

/* Inner content spacing */
.accordion > *:not(summary) {
    margin-top: 10px;
}

/* Tables for old versions */
.version-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

.version-table th,
.version-table td {
    border: 1px solid #27272a;
    padding: 4px 6px;
    text-align: left;
}

.version-table th {
    background: #1f1f23;
    font-weight: 600;
}

/* Code block */
.code-block {
    background: #09090b;
    border: 1px solid #27272a;
    padding: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    white-space: pre;
    overflow-x: auto;
    margin: 6px 0 10px;
}

/* Tech section small spacing */
.tech-section {
    margin-top: 4px;
}

/* Footer */
.footer {
    margin-top: 18px;
    font-size: 12px;
    color: #9ca3af;
    text-align: left;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .page {
        margin: 16px;
        padding: 16px;
    }

    .logo {
        width: 80px;
    }
}
