:root, [data-theme="light"] { 
    --bg-body: #f5f5f7; 
    --bg-card: #ffffff;
    --text-main: #1d1d1f; 
    --text-muted: #55555c;
    --accent-color: #2b2175; 
    --accent-hover: #3a2e99;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --border-color: #d2d2d7;
    --control-bg: rgba(0,0,0,0.05);
    --control-hover: rgba(0,0,0,0.1);
    --map-filter: none;
}

[data-theme="dark"] {
    --bg-body: #000000;
    --bg-card: #1c1c1e;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent-color: #5c4ec9;
    --accent-hover: #7364eb;
    --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
    --border-color: #333336;
    --control-bg: rgba(255,255,255,0.1);
    --control-hover: rgba(255,255,255,0.2);
    --map-filter: invert(90%) hue-rotate(180deg);
}

[data-theme="dark"] .logo {
    background-color: #ffffff;
    padding: 15px 25px;
    border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Controls */
.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
    animation: fadeIn 1s ease-out;
}

.control-btn {
    background-color: var(--control-bg);
    color: var(--text-main);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.control-btn:hover {
    background-color: var(--control-hover);
    transform: scale(1.05);
}

.control-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Nav & Hero */
header {
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 1s ease-out;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    width: 160px;
    margin-bottom: 40px;
    transition: filter 0.3s ease;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em; 
    line-height: 1.05;
    color: var(--text-main);
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

.btn {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 980px; 
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Sections */
.section {
    padding: 120px 20px;
    text-align: center;
}

.section-white {
    background-color: var(--bg-card);
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 50px;
    color: var(--text-main);
}

.text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-block p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 400;
}

.text-block p.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Cards / Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-card);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(128,128,128,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card p, .card ul {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Links in Cards */
.card-link {
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.5;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.card-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.action-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.action-link::after {
    content: ' ↗';
    font-family: system-ui;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}

ul {
    list-style: none; 
    margin-top: auto; 
    margin-bottom: auto; 
    padding: 0;
}

address {
    font-style: normal;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid cards */
.grid .card:nth-child(1) { transition-delay: 0.1s; }
.grid .card:nth-child(2) { transition-delay: 0.2s; }
.grid .card:nth-child(3) { transition-delay: 0.3s; }

/* Footer */
footer {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer p {
    margin-bottom: 10px;
}

.logo {
    height: auto;
}

/* Tema simgeleri */
[data-theme="dark"] .moon-icon,
[data-theme="light"] .sun-icon,
html:not([data-theme]) .sun-icon {
    display: none;
}

.card-icon {
    display: block;
    margin: 0 auto 12px;
    color: var(--accent-color);
}

/* Harita */
.map-container {
    margin: 60px auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(128,128,128,0.1);
    width: 100%;
    max-width: 1100px;
    line-height: 0;
}

.map-frame {
    display: block;
    filter: var(--map-filter, none);
    border: none;
}

/* Footer Links (Gizlilik, Şartlar, Çerez Tercihleri) */
.footer-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
}

.footer-links a,
.page-footer a:not(.back-btn),
.footer-link-btn {
    color: var(--text-muted);
    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(--accent-color);
    text-decoration: underline;
}

.footer-links a:focus-visible,
.page-footer a:focus-visible,
.footer-link-btn:focus-visible,
.cookie-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    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.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

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

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 980px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

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

/* Alt sayfalar (Gizlilik, Şartlar, 404) */
body.page-simple {
    padding: 100px 20px 40px;
}

.page-card {
    max-width: 760px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(128,128,128,0.1);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
}

.page-card h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0;
    margin: 32px 0 8px;
}

.page-card p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.legal-meta {
    font-size: 0.9rem;
}

.page-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: 0.95rem;
}

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

.back-btn:hover {
    text-decoration: underline;
}

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

.page-404 h1 {
    font-size: 5rem;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

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

.page-404 .btn {
    display: inline-block;
    margin-top: 24px;
}

@media (max-width: 480px) {
    .page-card {
        padding: 32px 24px;
    }
}
