:root {
    /* Monokrom (Renksiz/Minimalist) Light Mode Paleti */
    --bg-color: #fafafa;
    --surface-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #717171;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --hover-bg: #f9f9f9;
}

/* Monokrom Dark Mode Paleti */
html.dark-mode {
    --bg-color: #0a0a0a;
    --surface-color: #121212;
    --text-primary: #f0f0f0;
    --text-secondary: #a1a1a1;
    --border-color: #222222;
    --hover-bg: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ekran Okuyucular için gizli sınıf (a11y) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.controls-wrapper {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 10;
}

.lang-select {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: auto;
}

.lang-select:hover, .lang-select:focus {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

html.dark-mode #sun-icon { display: block; }
html.dark-mode #moon-icon { display: none; }
html:not(.dark-mode) #sun-icon { display: none; }
html:not(.dark-mode) #moon-icon { display: block; }

.profile-container {
    width: 100%;
    max-width: 580px;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 0.5rem;
}

.main-role {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.mt-large {
    margin-top: 3.5rem;
}

/* Semantik Liste Yapısı */
.links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.links li {
    width: 100%;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-item:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.01);
    background-color: var(--hover-bg);
    border-color: var(--text-secondary);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

/* İkon boyutu 28px'den 40px'e çıkarıldı */
.custom-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    filter: grayscale(80%) contrast(110%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.link-item:hover .custom-icon {
    filter: grayscale(0%);
}

/* Dark Mode İkon Dönüşümü */
html.dark-mode .custom-icon {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

html.dark-mode .link-item:hover .custom-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.text-group {
    display: flex;
    flex-direction: column;
}

.link-text {
    font-weight: 600;
    font-size: 1.05rem;
}

.link-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.right-icon, .arrow {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.right-icon {
    opacity: 0.5;
}

.link-item:hover .right-icon {
    opacity: 1;
}

[dir="ltr"] .arrow {
    opacity: 0;
    transform: translateX(-10px);
}

[dir="rtl"] .arrow {
    opacity: 0;
    transform: translateX(10px);
}

.link-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

.email-chips-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.email-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.email-chip svg {
    width: 15px;
    height: 15px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.email-chip:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background-color: var(--hover-bg);
}

.email-chip:hover svg {
    color: var(--text-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(40%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Footer Styling */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.site-footer .copyright {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.custom-icon-sm {
    width: 20px;
    height: 20px;
}

/* Klavye odağı (a11y) */
.lang-select:focus-visible,
.theme-toggle:focus-visible,
.link-item:focus-visible,
.email-chip:focus-visible,
.faq-question:focus-visible,
.cookie-btn:focus-visible,
.footer-link-btn:focus-visible,
.back-btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* SSS (FAQ) Styling */
.faq-section {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--text-primary);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer Links (Gizlilik, Şartlar, Çerez Tercihleri) */
.footer-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
}

.footer-links a,
.page-footer a:not(.back-btn),
.footer-link-btn {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.footer-link-btn[hidden] {
    display: none;
}

.footer-links a:hover,
.page-footer a:not(.back-btn):hover,
.footer-link-btn:hover {
    color: var(--text-primary);
}

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1 1 280px;
    max-width: 640px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-text a {
    color: var(--text-primary);
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
}

/* Alt sayfalar (Gizlilik, Şartlar, 404) */
body.page-simple {
    padding: 5rem 1.5rem 2rem;
}

.page-card {
    width: 100%;
    max-width: 640px;
    background-color: var(--surface-color);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.page-card h1 {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.page-card h2 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.5rem;
}

.page-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-meta,
.legal-note {
    font-size: 0.85rem;
}

.legal-note {
    font-style: italic;
}

.page-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.back-btn {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

[dir="rtl"] .back-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

.page-404 {
    max-width: 500px;
    text-align: center;
}

.page-404 h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.page-404 p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border-radius: 12px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-solid:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-solid svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .page-card {
        padding: 2rem 1.5rem;
    }
}
