/* =====================================================
   GENEL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient( circle at top right, rgba(139, 92, 246, 0.08), transparent 35% ), #0b1220;
    color: #edf0f7;
    font-family: "Inter", sans-serif;
    line-height: 1.7;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    background: linear-gradient( 110deg, #202544, #303d70 );
    border-bottom: 1px solid rgba(255,255,255,0.08);
}


.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}


.brand-icon {
    font-size: 42px;
    filter: drop-shadow( 0 0 12px rgba(231, 126, 201, .35) );
}


.brand h1 {
    font-family: "Playfair Display", serif;
    font-size: 31px;
    letter-spacing: 1px;
}


    .brand h1 span {
        color: #e88bc8;
    }


.brand p {
    color: #aeb8d0;
    font-size: 13px;
}


.header-quote {
    color: #d9b9d1;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 16px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4%;
    border-bottom: 1px solid rgba(255,255,255,.08);
    overflow-x: auto;
    background: #0d1524;
}


    .navbar a {
        color: #c5ccdb;
        text-decoration: none;
        padding: 11px 18px;
        border-radius: 10px;
        white-space: nowrap;
        font-size: 14px;
        transition: .2s ease;
    }


        .navbar a:hover {
            color: white;
            background: rgba(255,255,255,.06);
        }


        .navbar a.active {
            color: #fff;
            background: #df83c2;
            box-shadow: 0 6px 22px rgba(223,131,194,.2);
        }


/* =====================================================
   HERO
===================================================== */

.hero {
    margin: 26px auto;
    width: 94%;
    min-height: 180px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px 6%;
    background: linear-gradient( 100deg, rgba(32,43,70,.98), rgba(58,51,51,.9) );
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 15px 45px rgba(0,0,0,.18);
}


.hero-text {
    position: relative;
    z-index: 2;
}


.quote-mark {
    position: absolute;
    top: -28px;
    left: -30px;
    font-size: 75px;
    color: #c2d1fa;
    opacity: .9;
    font-family: Georgia, serif;
}


.hero h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 10px;
}


.hero p {
    color: #aab5ce;
    font-family: "Playfair Display", serif;
}


.hero-books {
    position: absolute;
    right: 8%;
    bottom: -10px;
    font-size: 120px;
    opacity: .45;
    transform: rotate(-5deg);
}


/* =====================================================
   ANA ALAN
===================================================== */

.content-wrapper {
    width: 94%;
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}


/* =====================================================
   KONU PANELİ
===================================================== */

.topic-panel {
    background: rgba(16,25,40,.95);
    border: 1px solid #26334a;
    border-radius: 14px;
    padding: 18px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}


.panel-title {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 18px;
}


.panel-icon {
    font-size: 28px;
}


.panel-title h2 {
    font-family: "Playfair Display", serif;
    font-size: 21px;
}


.panel-title p {
    color: #8491aa;
    font-size: 12px;
}


/* =====================================================
   SEARCH
===================================================== */

.search-box {
    height: 43px;
    border: 1px solid #344158;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    gap: 8px;
    margin-bottom: 12px;
    background: #111b2b;
}


    .search-box span {
        font-size: 24px;
        color: #8492ad;
    }


    .search-box input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        color: white;
        font-size: 13px;
    }


        .search-box input::placeholder {
            color: #68758e;
        }


/* =====================================================
   TOPIC BUTTONS
===================================================== */

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.topic-button {
    width: 100%;
    border: 1px solid transparent;
    background: #111b2b;
    color: #d7dce7;
    padding: 10px 11px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: .2s ease;
}


    .topic-button span {
        color: #758198;
        font-size: 11px;
        min-width: 22px;
    }


    .topic-button:hover {
        background: #1a2639;
        border-color: #33415a;
        transform: translateX(2px);
    }


    .topic-button.active {
        background: linear-gradient( 90deg, #df83c2, #c66cae );
        color: white;
        border-color: transparent;
        box-shadow: 0 7px 18px rgba(223,131,194,.14);
    }


        .topic-button.active span {
            color: rgba(255,255,255,.75);
        }


/* =====================================================
   SUMMARY
===================================================== */

.summary-area {
    min-width: 0;
}


.summary-content {
    background: #101a2a;
    border: 1px solid #27344a;
    border-radius: 14px;
    overflow: hidden;
}


.summary-header {
    padding: 27px 30px;
    border-bottom: 1px solid #27344a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient( 135deg, rgba(30,43,68,.8), rgba(16,26,42,.9) );
}


.summary-number {
    color: #e283c1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


.summary-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    margin: 2px 0 4px;
}


.summary-header p {
    color: #8f9bb2;
    font-size: 13px;
}


.save-button {
    background: transparent;
    border: 1px solid #3b4860;
    color: #d7dcea;
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
}


    .save-button:hover {
        border-color: #df83c2;
        color: #df83c2;
    }


/* =====================================================
   SUMMARY SECTIONS
===================================================== */

.summary-section {
    padding: 30px;
    border-bottom: 1px solid #202c40;
}


    .summary-section:last-child {
        border-bottom: none;
    }


    .summary-section h2 {
        font-family: "Playfair Display", serif;
        font-size: 24px;
        color: #f0ddea;
        margin-bottom: 17px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(223,131,194,.18);
    }


    .summary-section h3 {
        color: #e6b6d7;
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 8px;
    }


    .summary-section p {
        color: #c2cad8;
        font-size: 14px;
        margin-bottom: 13px;
    }


    .summary-section strong {
        color: #f0f2f8;
    }


    .summary-section ul {
        padding-left: 23px;
        color: #c0c9d8;
        font-size: 14px;
    }


    .summary-section li {
        margin-bottom: 7px;
    }


/* =====================================================
   BİLGİ KUTULARI
===================================================== */

.info-box {
    padding: 16px 18px;
    border-radius: 10px;
    background: #162238;
    border-left: 3px solid #8d9dea;
    margin: 18px 0;
}


    .info-box p {
        margin: 5px 0 0;
    }


    .info-box.important {
        border-left-color: #df83c2;
        background: rgba(223,131,194,.07);
    }


    .info-box.warning {
        border-left-color: #e6ad70;
        background: rgba(230,173,112,.07);
    }


/* =====================================================
   GRIDLER
===================================================== */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}


    .comparison-grid div,
    .function-table div,
    .important-table div {
        padding: 13px;
        background: #131f31;
        border: 1px solid #29364b;
        border-radius: 9px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }


    .comparison-grid span,
    .function-table span,
    .important-table span {
        color: #8996ad;
        font-size: 12px;
    }


.function-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}


.important-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}


/* =====================================================
   İKİ SÜTUN
===================================================== */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


.category-card {
    background: #131f31;
    border: 1px solid #29364b;
    border-radius: 10px;
    padding: 18px;
}


    .category-card h3 {
        margin: 0 0 10px;
        color: #e6b6d7;
    }


/* =====================================================
   TANIM GRID
===================================================== */

.definition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


    .definition-grid div {
        background: #131f31;
        border: 1px solid #29364b;
        border-radius: 10px;
        padding: 17px;
    }


    .definition-grid p {
        margin-top: 5px;
        margin-bottom: 0;
    }


/* =====================================================
   MAZMUN
===================================================== */

.mazmun-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}


    .mazmun-grid div {
        background: #131f31;
        border: 1px solid #29364b;
        padding: 14px;
        border-radius: 9px;
        text-align: center;
    }


    .mazmun-grid span {
        display: block;
        color: #8996ad;
        font-size: 12px;
        margin-top: 3px;
    }


/* =====================================================
   KARIŞTIRILANLAR
===================================================== */

.mistake-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}


    .mistake-grid div {
        padding: 16px;
        background: #151f30;
        border: 1px solid #303d52;
        border-radius: 10px;
    }


    .mistake-grid strong {
        color: #e89bcb;
    }


    .mistake-grid p {
        margin-top: 5px;
        margin-bottom: 0;
        font-size: 13px;
    }


/* =====================================================
   EMPTY
===================================================== */

.empty-summary {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: #101a2a;
    border: 1px solid #27344a;
    border-radius: 14px;
    padding: 30px;
}


.empty-icon {
    font-size: 55px;
    margin-bottom: 15px;
}


.empty-summary h1 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    margin-bottom: 8px;
}


.empty-summary p {
    color: #a8b2c5;
    margin-bottom: 5px;
}


.empty-summary span {
    color: #6f7c93;
    font-size: 13px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    width: 94%;
    max-width: 1450px;
    margin: 25px auto;
    display: flex;
    justify-content: space-between;
    color: #748198;
    font-size: 13px;
    padding: 10px 0 25px;
}


    footer span:first-child {
        color: #c18faf;
    }


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .content-wrapper {
        grid-template-columns: 270px 1fr;
    }

    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mazmun-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 750px) {

    .site-header {
        align-items: flex-start;
        gap: 15px;
    }

    .header-quote {
        display: none;
    }

    .brand h1 {
        font-size: 25px;
    }

    .brand-icon {
        font-size: 32px;
    }


    .content-wrapper {
        grid-template-columns: 1fr;
    }


    .topic-panel {
        position: static;
        max-height: none;
    }


    .topic-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }


    .summary-header {
        flex-direction: column;
        align-items: flex-start;
    }


    .function-table,
    .important-table,
    .definition-grid,
    .mistake-grid,
    .two-column {
        grid-template-columns: 1fr;
    }


    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .mazmun-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    footer {
        flex-direction: column;
        gap: 8px;
    }
}


@media (max-width: 500px) {

    .hero {
        width: 92%;
        min-height: 150px;
    }


        .hero h2 {
            font-size: 23px;
        }


    .content-wrapper {
        width: 92%;
    }


    .summary-section {
        padding: 20px;
    }


    .summary-header {
        padding: 22px;
    }


        .summary-header h1 {
            font-size: 27px;
        }


    .topic-list {
        grid-template-columns: 1fr;
    }


    .comparison-grid {
        grid-template-columns: 1fr;
    }
}



/* =====================================================
   ANA SİTE RENK PALETİ
===================================================== */

body {
    background: #03080D;
    color: #F4F7FA;
}


/* HEADER */

.site-header {
    background: linear-gradient(110deg, #07121B, #0A1722);
    border-bottom-color: #162D3F;
}

.brand h1 span {
    color: #8EC5FF;
}

.brand p {
    color: #8EA4B8;
}

.header-quote {
    color: #B8D9F5;
}


/* NAVBAR */

.navbar {
    background: #07121B;
    border-bottom-color: #162D3F;
}

    .navbar a {
        color: #8EA4B8;
    }

        .navbar a:hover {
            color: #F4F7FA;
            background: #102536;
        }

        .navbar a.active {
            background: #142C40;
            color: #F4F7FA;
            box-shadow: 0 6px 22px rgba(142, 197, 255, .12);
        }


/* HERO */

.hero {
    background: linear-gradient(100deg, #07121B, #0A1722);
    border-color: #162D3F;
}

    .hero p {
        color: #8EA4B8;
    }

.quote-mark {
    color: #8EC5FF;
}


/* KONU PANELİ */

.topic-panel {
    background: #07121B;
    border-color: #162D3F;
}


/* SEARCH */

.search-box {
    background: #0A1722;
    border-color: #162D3F;
}

    .search-box span {
        color: #8EA4B8;
    }

    .search-box input {
        color: #F4F7FA;
    }

        .search-box input::placeholder {
            color: #62788C;
        }


/* KONU BUTONLARI */

.topic-button {
    background: #0A1722;
    color: #D7E2EC;
}

    .topic-button span {
        color: #62788C;
    }

    .topic-button:hover {
        background: #102536;
        border-color: #29445A;
    }

    .topic-button.active {
        background: linear-gradient(90deg, #17344B, #142C40);
        color: #F4F7FA;
        border-color: #294D68;
        box-shadow: 0 7px 18px rgba(142, 197, 255, .10);
    }

        .topic-button.active span {
            color: #B8D9F5;
        }


/* ÖZET */

.summary-content {
    background: #07121B;
    border-color: #162D3F;
}

.summary-header {
    background: linear-gradient(135deg, #0A1722, #07121B);
    border-bottom-color: #162D3F;
}

.summary-number {
    color: #8EC5FF;
}

.summary-header p {
    color: #8EA4B8;
}


/* ÖZET BAŞLIKLARI */

.summary-section {
    border-bottom-color: #162D3F;
}

    .summary-section h2 {
        color: #DCEBFA;
        border-bottom-color: rgba(142, 197, 255, .18);
    }

    .summary-section h3 {
        color: #B8D9F5;
    }

    .summary-section p {
        color: #B4C3D1;
    }

    .summary-section strong {
        color: #F4F7FA;
    }

    .summary-section ul {
        color: #B4C3D1;
    }


/* BİLGİ KUTULARI */

.info-box {
    background: #0A1722;
    border-left-color: #8EC5FF;
}

    .info-box.important {
        border-left-color: #8EC5FF;
        background: rgba(142, 197, 255, .07);
    }

    .info-box.warning {
        border-left-color: #B8A06A;
        background: rgba(184, 160, 106, .07);
    }


/* KARTLAR / GRIDLER */

.comparison-grid div,
.function-table div,
.important-table div {
    background: #0A1722;
    border-color: #162D3F;
}

.comparison-grid span,
.function-table span,
.important-table span {
    color: #7F96AA;
}

.category-card {
    background: #0A1722;
    border-color: #162D3F;
}

    .category-card h3 {
        color: #B8D9F5;
    }

.definition-grid div {
    background: #0A1722;
    border-color: #162D3F;
}

.mazmun-grid div {
    background: #0A1722;
    border-color: #162D3F;
}

.mazmun-grid span {
    color: #7F96AA;
}

.mistake-grid div {
    background: #0A1722;
    border-color: #20384A;
}

.mistake-grid strong {
    color: #8EC5FF;
}


/* BOŞ ÖZET */

.empty-summary {
    background: #07121B;
    border-color: #162D3F;
}

    .empty-summary p {
        color: #8EA4B8;
    }

    .empty-summary span {
        color: #62788C;
    }


/* FOOTER */

footer {
    color: #62788C;
}

    footer span:first-child {
        color: #8EC5FF;
    }



/* =====================================================
   YAZI RENKLERİ - DAHA CANLI
===================================================== */

/* Ana metinler */
.summary-section p {
    color: #F1F5F9;
}

/* Liste metinleri */
.summary-section ul {
    color: #F1F5F9;
}

/* Liste maddeleri */
.summary-section li {
    color: #F1F5F9;
}

/* Ana bölüm başlıkları */
.summary-section h2 {
    color: #A9D7FF;
    border-bottom-color: rgba(169, 215, 255, .22);
}

/* Alt başlıklar */
.summary-section h3 {
    color: #9DCEFA;
}

/* Kalın yazılar */
.summary-section strong {
    color: #FFFFFF;
}

/* Özet başlığının açıklaması */
.summary-header p {
    color: #C9E3F7;
}

/* Özet ana başlığı */
.summary-header h1 {
    color: #FFFFFF;
}

/* Bilgi kutularındaki yazılar */
.info-box {
    color: #F1F5F9;
}

    .info-box p {
        color: #F1F5F9;
    }

/* Kartlardaki başlıklar */
.category-card h3 {
    color: #A9D7FF;
}

/* Kartlardaki normal yazılar */
.category-card {
    color: #F1F5F9;
}

/* Tablo / grid yazıları */
.comparison-grid,
.function-table,
.important-table,
.definition-grid,
.mazmun-grid,
.mistake-grid {
    color: #F1F5F9;
}

    /* İkincil küçük yazılar */
    .comparison-grid span,
    .function-table span,
    .important-table span,
    .mazmun-grid span {
        color: #AFC8DC;
    }

/* =====================================================
   COMFORTAA BAŞLIKLAR
===================================================== */

.summary-header h1,
.summary-section h2,
.summary-section h3,
.panel-title h2 {
    font-family: "Comfortaa", sans-serif;
    font-weight: 300;
}

.summary-header h1 {
    color: #FFFFFF;
}

.summary-section h2 {
    color: #C4E5FF;
}

.summary-section h3 {
    color: #B5DDFF;
}

/* =====================================================
   KONU İÇİ ARAMA
===================================================== */

.summary-header {
    position: relative;
}

.topic-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 210px;
    height: 42px;
    padding: 0 13px;
    background: #0A1722;
    border: 1px solid #29445A;
    border-radius: 10px;
    transition: .2s ease;
}

    .topic-search:focus-within {
        border-color: #9FD7FF;
        box-shadow: 0 0 0 3px rgba(159, 215, 255, .08);
    }

    .topic-search span {
        color: #9FD7FF;
        font-size: 20px;
        line-height: 1;
    }

    .topic-search input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        color: #FFFFFF;
        font-family: "Comfortaa", sans-serif;
        font-size: 12px;
    }

        .topic-search input::placeholder {
            color: #8EA4B8;
        }


/* Arama sonucu */

.topic-search-match {
    background: rgba(159, 215, 255, .28);
    color: #FFFFFF;
    border-radius: 3px;
    padding: 1px 3px;
}


    /* Aktif bulunan sonuç */

    .topic-search-match.current {
        background: #9FD7FF;
        color: #07121B;
    }

mark.topic-search-match {
    background: rgba(159, 215, 255, .28);
    color: #FFFFFF;
    border-radius: 4px;
    padding: 2px 4px;
}