/* --- Base Styles --- */
:root {
    --font-family: 'Inter', sans-serif;
    --light-bg: #ffffff;
    --light-text: #1a202c;
    --light-accent: #2b6cb0;
    --dark-bg: #1c1c1e;
    --dark-text: #edf2f7;
    --dark-accent: #63b3ed;
    --border-light: #e2e8f0;
    --border-dark: #4a5568;
}

html[data-theme='light'] {
    --bg-color: var(--light-bg);
    --text-color: var(--light-text);
    --accent-color: var(--light-accent);
    --border-color: var(--border-light);
}

html[data-theme='dark'] {
    --bg-color: var(--dark-bg);
    --text-color: var(--dark-text);
    --accent-color: var(--dark-accent);
    --border-color: var(--border-dark);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* --- Layout --- */
.container {
    max-width: 80ch;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header --- */
.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title {
    font-weight: bold;
}
.header-nav a {
    margin-left: 0;
}
.header-nav a.active {
    font-weight: bold;
    text-decoration: none;
}
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-selector.active {
    font-weight: bold;
}

.lang-selector:hover {
    text-decoration: none;
}

.flag {
    line-height: 1;
    font-size: 1.2rem;
}

/* Separator between language links */
.lang-separator {
    margin: 0 0.25rem;
    color: var(--text-color);
}

/* --- Content --- */
.main-content {
    padding: 2rem 0;
}

.redirect-container {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.app-store-link img {
    height: 57px; /* Or your desired height */
    width: auto;
}

html[data-theme='light'] .app-store-dark {
    display: none;
}
html[data-theme='dark'] .app-store-light {
    display: none;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}
.footer-nav {
    margin-bottom: 0.5rem;
}
.footer-nav a {
    padding: 0 0.5rem;
    color: var(--text-color);
}
.footer-nav a:hover {
    color: var(--accent-color);
}

/* Light theme colors */
[data-md-color-scheme="default"] {
    --md-primary-fg-color:        #2d3748; /* Gray 800 */
    --md-accent-fg-color:         #2b6cb0; /* Blue 600 */
    --md-default-bg-color:        #ffffff;
    --md-default-fg-color:        #1a202c; /* Gray 900 */
}

/* Dark theme colors */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1c1c1e;
  --md-default-fg-color: #edf2f7; /* Gray 200 */
  --md-default-fg-color--light: #a0aec0; /* Gray 500 */
  --md-default-fg-color--lighter: #718096; /* Gray 600 */

  --md-primary-fg-color: #edf2f7; /* Gray 200 */
  --md-accent-fg-color: #63b3ed; /* Blue 400 */

  --md-typeset-a-color: #63b3ed; /* Blue 400 */

  --md-footer-bg-color: #171719;
  --md-footer-fg-color: #a0aec0;
  --md-footer-fg-color--light: #718096;
}

/* Modernize elements */
.md-header, .md-tabs {
    box-shadow: none;
    border-bottom: 1px solid var(--md-default-fg-color--lighter);
}

.md-button {
    border-radius: 8px;
}

.footer-nav-link {
    padding: 0 0.5rem;
    color: var(--md-default-fg-color);
    text-decoration: none;
}
.footer-nav-link:hover {
    color: var(--md-accent-fg-color);
    text-decoration: underline;
}

/* --- Layout Overrides for Simpler Page --- */

/* Hide navigation and table of contents sidebars */
.md-sidebar {
  display: none;
}

/* Re-center and style the main content area when sidebars are gone */
.md-main__inner {
  display: block;
}

.md-content {
  max-width: 80ch;
  margin: 0 auto;
  padding-top: 2rem;
}

.md-footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
} 