﻿/* GENEL VE RESET */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f7f6;
    color: #333;
}

.main-container {
    display: flex;
    width: 100%;
    flex-grow: 1;
    height: calc(100vh - 74px);
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

/* HEADER DÜZENLEMELERİ */
.header {
    background-color: #fff;
    padding: 10px 40px;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #f39c12;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
    height: 74px;
}

.header-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    margin-right: 8px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo .icon-svg {
        color: #2c3e50;
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    .logo span {
        font-size: 1.5em;
        color: #2c3e50;
        font-weight: bold;
    }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 50px;
}

    .nav-links li {
        margin: 0 15px;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-size: 0.95em;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        padding: 5px 0;
    }

        .nav-links a .icon-svg {
            color: #7f8c8d;
        }

        .nav-links a:hover {
            color: #f39c12;
        }

.social-menu a {
    margin-left: 10px;
    display: inline-block;
    line-height: 0;
}

    .social-menu a .icon-img {
        width: 24px;
        height: 24px;
        vertical-align: middle;
        border-radius: 4px;
        transition: opacity 0.3s;
    }

    .social-menu a:hover {
        opacity: 0.8;
    }

/* SIDEBAR VE İÇERİK STİLLERİ */
.sidebar {
    width: 320px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    overflow-y: auto;
    height: 100%;
}

    .sidebar h2 {
        color: #fff;
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.4em;
    }

/* Grup Başlıkları (Seviyeler) */
.group-title {
    padding: 10px 15px;
    margin: 15px -20px 5px -20px;
    font-weight: bold;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    .group-title i {
        margin-right: 10px;
        font-size: 1.1em;
    }

/* Seviye Renkleri */
.level-1 {
    background-color: #3498db;
}
/* Temel (Mavi) */
.level-2 {
    background-color: #f1c40f;
    color: #333;
}
    /* Orta (Sarı) */
    .level-2 i {
        color: #333;
    }

.level-3 {
    background-color: #e74c3c;
}
/* İleri (Kırmızı) */
.level-4 {
    background-color: #27ae60;
}
/* Uzmanlık (Yeşil) */
.level-5 {
    background-color: #8e44ad;
}
/* Ekstra Uzmanlık (Mor) */

.menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    margin-bottom: 3px;
}

    .menu-item:hover {
        background-color: #46627f;
    }

    .menu-item.active {
        background-color: #f39c12;
        color: #fff;
        font-weight: bold;
    }
    /* JS Vurgu Rengi */
    .menu-item i {
        margin-right: 10px;
        font-size: 1.1em;
        margin-top: 2px;
        flex-shrink: 0;
    }

/* Bölüm Numarası */
.section-number {
    background-color: #f39c12;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 0.85em;
    flex-shrink: 0;
    color: #fff;
}

.menu-item.active .section-number {
    background-color: #c0392b;
}
/* Kırmızı Vurgu */

/* İçerik Stilleri */
.content-area {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

    .content-area h1 {
        color: #2c3e50;
        border-bottom: 2px solid #bdc3c7;
        padding-bottom: 10px;
        margin-bottom: 30px;
    }

#topic-title {
    font-size: 1.5em;
    color: #f39c12;
    margin-bottom: 20px;
    font-weight: bold;
}

.content-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

    .content-section h3 {
        color: #34495e;
        margin-top: 0;
        border-left: 4px solid #f39c12;
        padding-left: 15px;
    }

    .content-section h4 {
        color: #555;
        margin-top: 20px;
        font-weight: 600;
        border-bottom: 1px dashed #eee;
        padding-bottom: 5px;
    }

    .content-section p {
        line-height: 1.7;
    }

    .content-section ul, .content-section ol {
        line-height: 1.6;
        padding-left: 25px;
    }

    .content-section li {
        margin-bottom: 8px;
    }

    .content-section code {
        background-color: #ecf0f1;
        padding: 15px;
        display: block;
        white-space: pre-wrap;
        margin: 15px 0;
        border-radius: 5px;
        font-size: 0.9em;
        overflow-x: auto;
    }
