/* Temel değişkenler ve sıfırlama stilleri */
:root {
    --color-background: #111315;
    --color-surface: #1a1d20;
    --color-surface-secondary: #22262a;
    --color-primary: #57c84d;
    --color-primary-hover: #6bdb61;
    --color-text: #f4f4f4;
    --color-text-muted: #a9b0b7;
    --color-border: #30363b;
    --color-success: #3fb950;
    --color-warning: #d29922;
    --color-error: #f85149;
    --border-radius-small: 6px;
    --border-radius-medium: 10px;
    --border-radius-large: 16px;
    --container-width: 1200px;
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.3);
    --btn-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    --btn-shadow-hover: 0 4px 14px rgba(87, 200, 77, 0.22);
    --btn-radius: 8px;
    --transition-fast: 0.2s ease;
    --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
    --color-background: #f5f7f8;
    --color-surface: #ffffff;
    --color-surface-secondary: #edf1f3;
    --color-text: #15191c;
    --color-text-muted: #59636c;
    --color-border: #d8dee3;
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --btn-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    --btn-shadow-hover: 0 4px 14px rgba(87, 200, 77, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition:
        background-color 0.45s ease,
        color 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease !important;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-top: 0;
}

p {
    margin-top: 0;
}

ul {
    padding-left: 1.25rem;
}

/* Klavye odak stilleri */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Ana içeriğe atlama bağlantısı */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: #111;
    border-radius: var(--border-radius-small);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.section {
    padding: 2.5rem 0;
}

.section__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section__subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 640px;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.prose {
    max-width: 72ch;
}

.prose h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.prose p,
.prose ul {
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.35rem;
}

/* Ekran okuyucu için gizli metin */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
