:root {
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --surface-color: #f8fafc;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --surface-color: #1e293b;
    --border-color: #334155;
    --glass-bg: rgba(15, 23, 42, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #0f172a;
        --text-color: #f8fafc;
        --text-secondary: #94a3b8;
        --accent-color: #3b82f6;
        --accent-hover: #60a5fa;
        --surface-color: #1e293b;
        --border-color: #334155;
        --glass-bg: rgba(15, 23, 42, 0.8);
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    }
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Common Components */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.button-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.button-secondary {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.button-secondary:hover {
    background-color: var(--border-color);
}

/* Prose for release notes and markdown */
.prose {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.prose ul {
    padding-left: 20px;
    margin: 8px 0;
}

.prose li {
    margin-bottom: 4px;
}

.prose p {
    margin-bottom: 8px;
}

.prose h1,
.prose h2,
.prose h3 {
    font-size: 1.1em;
    margin: 12px 0 8px;
    color: var(--text-color);
}

.prose a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.button.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
    filter: grayscale(0.5);
}

.download-caption {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.8;
}

.download-caption {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.8;
}

section[id] {
    scroll-margin-top: 100px;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.release-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.release-card h3 a:hover {
    color: var(--accent-color);
}

.release-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 800px;
    margin: 0 auto;
}

.release-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.release-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
}

/* Image behavior across themes */
.dark-mode-img {
    display: none;
}

[data-theme="dark"] .light-mode-img {
    display: none;
}

[data-theme="dark"] .dark-mode-img {
    display: block;
}

[data-theme="light"] .light-mode-img {
    display: block;
}

[data-theme="light"] .dark-mode-img {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .light-mode-img {
        display: none;
    }

    :root:not([data-theme="light"]) .dark-mode-img {
        display: block;
    }
}