/* ========== CodeAtlantis Base Styles ========== */
/* Temaya göre renkleri CSS değişkenlerinden alır (light/dark dosyaları doldurur) */
@font-face {
    font-family: 'idealistLight';
    src: url('fonts/IdealistSans-Light.eot');
    src: local('IdealistSans-Light'),
    url('fonts/IdealistSans-Light.eot?#iefix') format('embedded-opentype'),
    url('fonts/IdealistSans-Light.woff2') format('woff2'),
    url('fonts/IdealistSans-Light.woff') format('woff'),
    url('fonts/IdealistSans-Light.ttf') format('truetype'),
    url('fonts/IdealistSans-Light.svg#IdealistSans-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'idealist';
    src: url('fonts/IdealistSans.eot');
    src: local('Idealist Sans'), local('IdealistSans'),
    url('fonts/IdealistSans.eot?#iefix') format('embedded-opentype'),
    url('fonts/IdealistSans.woff2') format('woff2'),
    url('fonts/IdealistSans.woff') format('woff'),
    url('fonts/IdealistSans.ttf') format('truetype'),
    url('fonts/IdealistSans.svg#IdealistSans') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --radius: 14px;
    --container: 1200px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 6px 24px rgba(0,0,0,.08);
    --transition: 180ms ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: "idealist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* Helpers */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(8px);
}

.site-header .logo img { display: block; height: 44px; }

.site-header .container {
    min-height: 72px; /* önce 56-60 civarıydı, şimdi büyüttük */
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;            /* 500 → 600 */
    margin-inline: 14px;
    padding: 18px 6px;           /* 12px → 18px */
    border-bottom: 2px solid transparent;
    font-size: 15.5px;           /* hafif büyüttük */
    transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a:focus {
    color: var(--text);
    border-color: var(--primary);
    outline: none;
}

/* Theme toggle */
.theme-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}
.theme-btn:hover { transform: translateY(-1px); border-color: var(--primary); }

/* Hero */
.hero {
    padding: 72px 0 32px;
    text-align: center;
}
.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--heading);
}
.hero p {
    margin: 0 auto 24px;
    max-width: 720px;
    color: var(--text-muted);
    font-size: clamp(15px, 1.7vw, 18px);
}
.cta-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-700));
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.12); opacity: .95; }

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 28px 0 72px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature h2 {
    margin: 6px 0 8px;
    font-size: 20px;
    color: var(--heading);
}
.feature p { margin: 0; color: var(--text-muted); }

/* Footer */
.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
}
.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 32px 0;
}
.site-footer h4 {
    margin: 0 0 10px;
    color: var(--heading);
    font-size: 16px;
}
.site-footer p, .site-footer li, .site-footer a { color: var(--text-muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.socials { list-style: none; padding: 0; margin: 0; }
.socials li { margin: 6px 0; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 14px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--footer-bg);
}

/* Responsive */
@media (max-width: 960px) {
    .features { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; } /* İleride burger menü ekleyeceğiz */
}

@media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 24px; }
}

/* A11y focus */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}















/* ===== Responsive Navigation (FIXED) ===== */

/* Desktop varsayılanları */
.nav-links.desktop-nav {
    display: flex;
    gap: 8px;
}

/* Burger button (varsayılan: gizli) */
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger {
    display: none;
    flex-flow: column;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    align-items: center; justify-content: center;
    cursor: pointer;
}
.burger-line {
    width: 18px; height: 2px; background: var(--text);
    display: block; position: relative;
}
.burger-line + .burger-line { margin-top: 4px; }

/* Mobil kapalıyken çekmece görünmesin */
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
    z-index: 70;
    pointer-events: none; /* tıklanamasın */
}
.mobile-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(85vw, 360px);
    background: var(--surface); border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 80;
    display: flex; flex-direction: column;
    pointer-events: none; /* kapalıyken tıklanamasın */
}
.mobile-nav-inner {
    padding: 20px;
    display: grid; gap: 8px;
}
.mobile-link {
    display: block; padding: 14px 12px; border-radius: 10px;
    color: var(--text); text-decoration: none; border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color var(--transition), transform var(--transition), background var(--transition), color var(--transition);
}
.mobile-link:hover { border-color: var(--primary); transform: translateX(2px); }

/* Açık durum */
.mobile-open .mobile-nav { transform: translateX(0%); pointer-events: auto; }
.mobile-open .mobile-nav-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-open { overflow: hidden; }

/* Breakpoint: 960px ve altı => desktop nav gizle, burger göster */
@media (max-width: 960px) {
    .nav-links.desktop-nav { display: none; }
    .burger { display: inline-flex; }
}

/* Güvenlik ağı: desktopta mobil elemanları tamamen kapat */
@media (min-width: 961px) {
    .mobile-nav, .mobile-nav-overlay { display: none !important; }
}

.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 4px 14px 4px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.mobile-title { color: var(--heading); font-weight: 600; }
.mobile-close {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); cursor: pointer;
}
.mobile-close:hover { border-color: var(--primary); }

[data-theme="light"] #site-logo { content: url("/assets/img/CodeAtlantisSiyah.svg"); }
[data-theme="dark"] #site-logo { content: url("/assets/img/CodeAtlantisBeyaz.svg"); }




/* Lang switch (desktop) */
.lang-switch { margin-right: 6px; }
.lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; min-width: 48px; padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none; font-weight: 700; letter-spacing: .5px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.lang-btn:hover { border-color: var(--primary); transform: translateY(-1px); }

/* Lang switch (mobile) */
.mobile-lang-line {
    display: flex; justify-content: flex-end; margin-bottom: 10px;
}
.mobile-lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; min-width: 56px; padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text); text-decoration: none; font-weight: 700;
}
.mobile-lang-btn:hover { border-color: var(--primary); }

/* Aktif menü vurgusu */
.nav-links a.nav-active {
    color: var(--text);
    border-color: var(--primary);
}
.mobile-link.nav-active {
    border-color: var(--primary);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.contact-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap:20px; padding-bottom:36px; }
.form-card, .info-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:18px; }
.field { display:grid; gap:6px; margin-bottom:12px; }
.field input, .field textarea {
    width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:10px;
    background: var(--bg); color: var(--text);
}
.field input:focus, .field textarea:focus { outline:2px solid var(--primary); outline-offset:2px; }
.error { color:#ff6b6b; font-size:14px; }
.alert.success { background: rgba(16,185,129,.15); border:1px solid rgba(16,185,129,.35); color:#10b981; padding:10px 12px; border-radius:10px; margin-bottom:10px; }
@media (max-width: 960px){ .contact-grid { grid-template-columns: 1fr; } }

.pricing { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; padding:12px 0 36px; }
.price-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:18px; }
.price-card .price { font-size:28px; font-weight:800; margin:8px 0 10px; color: var(--heading); }
.price-card.recommended { border-color: var(--primary); box-shadow: var(--shadow-md); }
.toggle { display:flex; justify-content:center; margin:10px 0; }
.faq details { background: var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-bottom:10px; }
.faq summary { cursor:pointer; font-weight:600; color: var(--heading); }
@media(max-width:960px){ .pricing{ grid-template-columns:1fr; } }


/* ===== ECOMMERCE PAGE ===== */
.ecommerce-page .badges{display:flex;gap:10px;justify-content:center;margin:6px 0 18px}
.badge{border:1px solid var(--border);background:var(--surface);padding:8px 10px;border-radius:999px;font-size:12px;color:var(--text-muted)}

.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:16px 0 36px}
.price-card{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-sm)}
.price-card.recommended{border-color:var(--primary);box-shadow:var(--shadow-md)}
.price-card .ribbon{position:absolute;top:12px;right:12px;background:linear-gradient(90deg,var(--primary),var(--primary-700));color:#fff;padding:4px 8px;border-radius:8px;font-size:11px;font-weight:700;letter-spacing:.4px}
.price-card h3{margin:0;color:var(--heading)}
.price-card .price{margin:0;font-size:28px;font-weight:800;color:var(--heading)}
.price-card .price .per{font-size:14px;color:var(--text-muted);font-weight:600}
.price-card .feat-list{display:grid;gap:8px;margin:8px 0 6px;padding:0;list-style:none;color:var(--text)}
.price-card .feat-list li{padding-left:18px;position:relative}
.price-card .feat-list li::before{content:"•";position:absolute;left:0;color:var(--primary);font-weight:900}
.price-card .ghost-btn{border:1px dashed var(--border);background:transparent;color:var(--text-muted);padding:8px 10px;border-radius:10px}
.price-card.expanded .ghost-btn{border-style:solid;color:var(--text)}
.price-card.expanded{transform:translateY(-2px);box-shadow:var(--shadow-md)}

.compare{margin:10px 0 36px}
.compare h2{margin:0 0 10px;color:var(--heading)}
.compare-scroll{overflow:auto;border:1px solid var(--border);border-radius:12px}
.compare-table{width:100%;border-collapse:separate;border-spacing:0}
.compare-table th,.compare-table td{padding:10px;border-bottom:1px solid var(--border);text-align:center}
.compare-table thead th{position:sticky;top:0;background:var(--surface);text-align:center}
.compare-table td:first-child,.compare-table th:first-child{text-align:left}

.faq h2{margin:18px 0 10px}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:600;color:var(--heading)}

.cta-strip{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:14px}
.cta-strip strong{color:var(--heading);display:block}
.cta-strip span{color:var(--text-muted);font-size:14px}

.toggle-inline{display:inline-flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--border);padding:8px 12px;border-radius:999px}

/* Responsive */
@media (max-width: 960px){
    .pricing{grid-template-columns:1fr}
    .cta-strip{flex-direction:column;align-items:stretch}
}

/* Cookie Consent Banner Styles */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface); /* Temanızın yüzey rengi */
    color: var(--text); /* Temanızın metin rengi */
    padding: 15px 20px;
    border-top: 1px solid var(--border); /* Temanızın kenarlık rengi */
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* JavaScript ile gösterilecek */
}

#cookieConsentBanner p {
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
    min-width: 200px; /* Küçük ekranlarda butonların alta düşmesi için */
    line-height: 1.5;
}

#cookieConsentBanner a {
    color: var(--primary); /* Temanızın ana rengi */
    text-decoration: underline;
}

#cookieConsentBanner > div { /* İç container */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: var(--container, 1200px); /* Ana container genişliği */
    margin: 0 auto;
}

#cookieConsentBanner .button-group {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Mevcut cta-btn stillerinize ek olarak küçük buton stili */
.cta-btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}
/* Eğer secondary stili yoksa ekleyin veya uyarlayın */
.cta-btn.secondary {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.cta-btn.secondary:hover {
    background-color: color-mix(in oklab, var(--primary) 10%, transparent);
}

/* Mobil için biraz daha iyi görünüm */
@media (max-width: 768px) {
    #cookieConsentBanner > div {
        flex-direction: column;
        align-items: flex-start;
    }
    #cookieConsentBanner .button-group {
        width: 100%;
        justify-content: flex-end; /* Butonları sağa yasla */
    }
}

