/* =========================================================
   1) RESET & BODY
========================================================= */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background:#f5f6f7;
    color:#111827;
    line-height:1.6;
}

/* =========================================================
   2) HEADER & NAV (DESKTOP)
========================================================= */
header {
    background:#101827;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

nav {
    max-width:1100px;
    margin:auto;
    padding:12px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.nav-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand-title {
    font-size:1.15rem;
    font-weight:700;
    color:#fff;
    white-space:nowrap;
}

/* --- Hamburger Butonu --- */
.hamburger-btn {
    display:none;
    background:transparent;
    border:1px solid rgba(255,255,255,0.3);
    color:#fff;
    font-size:1.4rem;
    cursor:pointer;
    padding:4px 10px;
    border-radius:6px;
}
.hamburger-btn:hover { background:rgba(255,255,255,0.15); }

/* --- Menü Linkleri (Desktop) --- */
.nav-menu {
    display:flex;
    align-items:center;
    gap:18px;
}

.nav-menu a {
    color:#d1d5db;
    text-decoration:none;
    font-size:0.95rem;
    font-weight:500;
    padding:6px 10px;
    border-radius:6px;
    transition:.2s;
}
.nav-menu a:hover {
    color:#fff;
    background:rgba(255,255,255,0.14);
}

/* --- Tema Butonu (Desktop) --- */
.theme-toggle {
    background:#374151;
    color:#fff;
    border:none;
    padding:7px 12px;
    border-radius:6px;
    cursor:pointer;
    font-size:0.85rem;
    display:flex;
    align-items:center;
    gap:6px;
}
.theme-toggle:hover { background:#4b5563; }

/* =========================================================
   3) MAIN CONTENT
========================================================= */
main { max-width:1100px; margin:30px auto; padding:0 20px; }
.section {
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 4px 6px rgba(0,0,0,0.05);
    margin-bottom:30px;
}
h1 { margin-bottom:15px; font-size:1.8rem; }
p { margin-bottom:15px; color:#4b5563; }

/* =========================================================
   4) MOBILE (<=768px)
========================================================= */
@media(max-width:768px){

    nav {
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
        padding:15px 20px;
    }

    .nav-header { width:100%; }

    .hamburger-btn { display:block; }

    .nav-menu {
        width:100%;
        display:none;
        flex-direction:column;
        gap:12px;
        padding-top:14px;
        border-top:1px solid rgba(255,255,255,0.15);
    }

    .nav-menu.open { display:flex !important; }

    .nav-menu a {
        width:100%;
        text-align:left;
        padding:12px 14px;
        background:#1f2937;
        border-radius:6px;
        font-size:1rem;
        border:1px solid #374151;
        font-weight:600;
    }

    /* Tema Butonu Mobilde */
    .theme-toggle {
        width:100%;
        justify-content:center;
        padding:12px;
        background:#4b5563;
        border-radius:6px;
        font-size:.95rem;
    }
}

/* =========================================================
   5) LIGHT MODE
========================================================= */
body.light-mode { background:#fff !important; color:#111 !important; }
body.light-mode .section {
    background:#f9fafb;
    border:1px solid #e5e7eb;
    box-shadow:none;
}
body.light-mode header { background:#101827; }
body.light-mode .theme-toggle { background:#2f3642; }
body.light-mode .nav-menu a { background:#e5e7eb !important; border:1px solid #ccc; color:#111; }
body.light-mode .nav-menu a:hover { background:#d1d5db !important; }

/* =========================================================
   6) FOOTER (DARK & LIGHT MODE UYUMLU)
========================================================= */
.site-footer {
    padding:25px 0;
    text-align:center;
    color:#9ca3af;
    font-size:.88rem;
    background:#0e1624;
    margin-top:40px;
    border-top:1px solid rgba(255,255,255,0.1);
}
.footer-copy { margin-bottom:8px; color:#9ca3af; }
.footer-links a {
    color:#cfd3da;
    text-decoration:none;
    margin:0 10px;
    font-size:.9rem;
    transition:.2s;
}
.footer-links a:hover { color:#ffffff; }

/* LIGHT MODE FOOTER */
body.light-mode .site-footer {
    background:#f3f4f6;
    border-top:1px solid #d1d5db;
    color:#374151;
}
body.light-mode .footer-copy { color:#4b5563; }
body.light-mode .footer-links a { color:#374151; }
body.light-mode .footer-links a:hover { color:#111827; }
