/* Genel Ayarlar ve Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Ubuntu:wght@400;500;700&display=swap');

:root {
    --background-color: #f4f7f9;
    --container-bg: #ffffff;
    --text-color: #333333;
    --heading-color: #111111;
    --primary-color: #007abc;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --fab-text-color: #111;
    --top-bar-bg: rgba(255, 255, 255, 0.5);
    --top-bar-border: rgba(230, 230, 230, 0.7);
}

body.dark-mode {
    --background-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #cccccc;
    --heading-color: #ffffff;
    --primary-color: #007abc;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --fab-text-color: #fff;
    --top-bar-bg: rgba(28, 28, 28, 0.5);
    --top-bar-border: rgba(51, 51, 51, 0.7);
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding-top: 90px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* YENİ TOPBAR STİLLERİ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;

    background-color: var(--top-bar-bg);
    border-bottom: 1px solid var(--top-bar-border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.top-bar-content {
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo,
.logo-spacer {
    flex: none;
}

.logo-spacer {
    visibility: hidden;
}

.logo img {
    display: block;
    height: 32px;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.top-bar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    transition: color 0.3s ease;
}

/* TOPBAR STİL SONU */


.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1rem;
    background-color: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


/* Floating Action Buttons (FAB) - Konumu Güncellendi */
.fab-container {
    position: fixed;
    /* Topbar'ın hemen altına konumlandırma (60px bar + 20px boşluk) */
    top: 80px;
    right: 24px;
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
    z-index: 1001;
}

.fab-container button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--fab-text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    line-height: 1;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.fab-container button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}


/* Mobil Uyumluluk */
@media (max-width: 768px) {
    body {
        padding-top: 90px;
        /* Topbar yüksekliği + boşluk */
    }

    footer {
        /* Mobil'de dikey boşlukları azaltıyoruz */
        margin-top: 2.5rem;
        /* 40px */
        padding: 2.5rem 1rem;
    }

    .top-bar-content {
        padding: 0 16px;
    }

    .top-bar-title {
        display: none;
    }

    .logo img {
        flex: initial;
        height: 32px;
    }

    .logo-spacer {
        display: none;
    }

    .top-bar-content {
        justify-content: center;
    }

    .container {
        padding: 1.5rem;
        margin: 0 16px;
    }

    .fab-container {
        right: 16px;
        flex-direction: column;
    }
}

/* Geri kalan .container, header, toc, main stilleri aynı kalabilir */
header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--heading-color);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.toc {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.toc h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--heading-color);
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--heading-color);
    text-decoration: underline;
}

main section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

main section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

main h2 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

main p {
    font-size: 1rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .toc ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    header h1 {
        font-size: 2rem;
        line-height: 1.2;
        font-weight: 500;
    }

    main h2 {
        font-size: 1.5rem;
    }
}


/* YENİ FOOTER STİLLERİ */
footer {
    background-color: var(--container-bg);
    color: var(--text-color);
    padding: 4rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
    /* Tüm içerik blokları için ortak ayarlar */
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
    /* İstenen 16px'lik boşluğu PADDING olarak veriyoruz */
    padding-left: 16px;
    padding-right: 16px;
}


.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 2.5rem;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-logo svg {
    height: 32px;
    color: var(--heading-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.slogan {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-download:hover {
    background-color: #0056b3;
    /* Primary color'un koyu tonu */
    transform: translateY(-2px);
}

body.dark-mode .btn-download:hover {
    background-color: #3a9cff;
    /* Primary color'un açık tonu */
}

.footer-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-social {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transition: color 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
}

/* FOOTER İÇİN RESPONSIVE AYARLAR */
@media (min-width: 769px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-info {
        margin-bottom: 0;
    }

    .footer-secondary {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }

    .footer-social {
        margin-bottom: 0;
    }
}