﻿/* /assets/css/site.css — Coomla (coomla.com) — bilginin merkezi */
/* Varsayılan renkler ve ölçüler */
:root {
    --brand: #0b3556; /* lacivert */
    --accent: #0aa6a6; /* teal */
    --line: #e9eef4; /* ince çizgi */
    --bg: #ffffff;
    --text: #132235;
    --muted: #6b778e;
    --wrap: 1120px;
}

/* Reset / Base */
* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0
}

body {
    font: 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: #11314f;
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

    a:focus-visible, button:focus-visible, summary:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: 6px;
    }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 16px
}

/* Tipografi */
h1, h2, h3 {
    color: #0d2540;
    line-height: 1.25
}

h1 {
    font-size: 28px;
    margin: 14px 0 12px
}

h2 {
    font-size: 22px;
    margin: 12px 0 10px
}

h3 {
    font-size: 18px;
    margin: 10px 0 8px
}

p {
    margin: 8px 0 12px
}

/* Üst şerit (topbar) */
.topbar {
    border-bottom: 1px solid var(--line);
    background: #f8fbfd
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

    .brand img {
        width: 36px;
        height: 36px;
        border-radius: 8px
    }

    .brand .tx {
        font-weight: 700;
        color: var(--brand);
        letter-spacing: .2px
    }

/* Reklam alanı */
.ad-slot {
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    padding: 12px;
    margin: 0;
    background: #fbfdff;
    color: #2a3e55;
    font-size: 14px;
}

/* İçindekiler (TOC) */
.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 20px
}

    .toc a {
        font-size: 14px;
        color: #123;
        border: 1px solid var(--line);
        padding: 6px 12px;
        border-radius: 999px;
        background: #fff;
        transition: background .15s ease, border-color .15s ease;
    }

        .toc a:hover {
            background: #f1f6fb;
            border-color: #dfe7f1
        }

/* Bölüm boşlukları */
section {
    margin: 22px 0
}

/* Listeler */
ul {
    padding-left: 20px;
    margin: 8px 0 12px
}

    ul li {
        margin: 4px 0
    }

/* Kartlı sıralı liste (Top 3 / Top 5) */
.cards {
    list-style: decimal inside;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

    .card .body {
        padding: 14px
    }

.facts {
    margin: 8px 0 0 0;
    padding-left: 18px
}

    .facts li {
        margin: 2px 0
    }

/* Yardımcı sınıflar */
.muted {
    color: var(--muted);
    font-size: 14px
}

.center {
    display: flex;
    justify-content: center;
    align-items: center
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef6f6;
    color: #0b3d3d
}

/* Footer (partials/footer.html ile) */
.j-footer {
    background: #f8fbfd;
    border-top: 4px solid var(--accent);
    color: #142132
}

    .j-footer .wrap {
        max-width: var(--wrap);
        margin: 0 auto;
        padding: 24px
    }

    .j-footer .top {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 20px;
        align-items: center
    }

    .j-footer .brand {
        display: flex;
        gap: 12px;
        align-items: center
    }

        .j-footer .brand img {
            width: 36px;
            height: 36px;
            border-radius: 8px
        }

        .j-footer .brand .tx {
            font-weight: 700;
            color: var(--brand);
            letter-spacing: .2px
        }

    .j-footer nav a {
        margin-right: 16px
    }

        .j-footer nav a:last-child {
            margin-right: 0
        }

    .j-footer .line {
        border-top: 1px solid var(--line);
        margin: 16px 0
    }

    .j-footer .grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 16px
    }

    .j-footer h3 {
        margin: .2rem 0 .4rem 0;
        font-size: 14px;
        color: var(--brand)
    }

    .j-footer ul {
        list-style: none;
        margin: 0;
        padding: 0
    }

    .j-footer li {
        margin: .2rem 0
    }

    .j-footer .meta {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: var(--muted);
        font-size: 12px;
        margin-top: 10px
    }

/* Responsive düzeltmeler */
@media (max-width:960px) {
    h1 {
        font-size: 26px
    }

    .wrap {
        padding: 14px
    }
}

@media (max-width:760px) {
    h1 {
        font-size: 24px
    }

    .toc {
        gap: 8px
    }

    .j-footer .top {
        grid-template-columns: 1fr
    }

    .j-footer .grid {
        grid-template-columns: 1fr 1fr
    }

    .j-footer .meta {
        flex-direction: column;
        align-items: flex-start
    }
}

@media (max-width:480px) {
    .brand img {
        width: 32px;
        height: 32px
    }

    h1 {
        font-size: 22px
    }
}

/* --- Kart başlığı: numara + klinik adı tek şerit --- */
.cards.numbered .card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

    /* başlık şeridi */
    .cards.numbered .card .head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: linear-gradient(180deg,#f9fbff,#f3f7fb);
        border-bottom: 1px solid var(--line);
    }

    /* rozet (numara) */
    .cards.numbered .card .badge {
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        color: #fff;
        font-weight: 800;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.12)
    }

/* rozet renk/şekil varyantları (1–5) */
.cards.numbered li:nth-child(1) .badge {
    background: linear-gradient(135deg,#fbd34d,#ff6b6b)
}

.cards.numbered li:nth-child(2) .badge {
    background: linear-gradient(135deg,#cfd4da,#2c3e50);
    border-radius: 8px
}

.cards.numbered li:nth-child(3) .badge {
    background: linear-gradient(135deg,#c08c44,#ffd9a0);
    clip-path: polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)
}

.cards.numbered li:nth-child(4) .badge {
    background: linear-gradient(135deg,#36d1dc,#5b86e5)
}

.cards.numbered li:nth-child(5) .badge {
    background: linear-gradient(135deg,#56ab2f,#a8e063);
    clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%)
}

/* başlık metni */
.cards.numbered .card .title {
    font-family: "Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #0d2540;
    line-height: 1.2;
}

/* gövde */
.cards.numbered .card .body {
    padding: 14px
}

.cards.numbered {
    list-style: none;
    margin: 0;
    padding: 0
}

    .cards.numbered .facts {
        margin: 8px 0 0 0;
        padding-left: 18px
    }

/* --- Reklam kutusu (kliniklerin altında) --- */
.ad-under {
    margin: 18px 0 0 0;
    border: 1px solid #ffe8a3;
    background: linear-gradient(180deg,#fff9d7,#fff4bf);
    color: #684f00;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

    .ad-under strong {
        font-weight: 700
    }

/* Etiket alanı (cards içindeki .tags) */
.cards.numbered .card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px 0;
}

/* Tekil etiket (chip) */
.tag {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f6fb;
    color: #0d2540;
    border: 1px solid #dfe7f1;
    white-space: nowrap;
}

/* gap desteklemeyen tarayıcılar için yedek */
.tags .tag + .tag {
    margin-left: 6px;
}

/* Varyantlar (isteğe bağlı) */
.tag.is-note {
    background: #eef7ff;
    border-color: #d6e9ff;
}

.tag.is-accent {
    background: #e7f7f7;
    border-color: #bfecec;
    color: #0b3d3d;
}

/* === 404: tüm içerikleri merkezle === */
.hero-404 {
    --topbar-h: 180px;
    --gap: 16px;
    min-height: min(720px, calc(100vh - var(--topbar-h) - 48px));
    padding: clamp(24px, 6vh, 64px) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
    text-align: center;
}

    .hero-404 .art {
        width: min(780px, 94vw);
        margin: 0 auto;
    }

        .hero-404 .art svg {
            width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            color: var(--brand, #0b3556);
        }

    .hero-404 > h1 {
        margin: 0;
        line-height: 1.2;
        letter-spacing: -.01em;
        font-weight: 800;
        font-size: clamp(2rem, 2.2vw + 1rem, 3rem);
    }

    .hero-404 > p {
        margin: 0;
        max-width: 820px;
        line-height: 1.85;
        font-size: clamp(1.05rem, .7vw + .9rem, 1.25rem);
    }

    .hero-404 .search-box {
        width: min(720px, 94vw);
        margin: var(--gap) auto;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
    }

        .hero-404 .search-box input {
            width: 100%;
        }

        .hero-404 .search-box button {
            white-space: nowrap;
        }

    .hero-404 .actions {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .hero-404 .tips {
        list-style: none;
        padding: 0;
        margin: 8px auto 0;
        max-width: 720px;
    }

        .hero-404 .tips li {
            margin: 6px 0;
        }

/* === Copy-protection (global) === */
/* KOPYA KORUMA — GENEL (SADECE body.cp AKTİFKEN) */
body.cp:not(.no-cp) :not(input):not(textarea):not(select):not(button):not(a):not(label):not([contenteditable="true"]) {
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

/* Kopyaya izin verilen güvenli alanlar: footer-slot (tamamı) + .copy-ok */
#footer-slot,
#footer-slot *,
.copy-ok,
.copy-ok *,
body.cp input,
body.cp textarea,
body.cp select,
body.cp button,
body.cp a,
body.cp label,
body.cp [contenteditable="true"] {
    user-select: text !important;
    -webkit-user-select: text !important;
    -ms-user-select: text !important;
}

/* Seçim highlight'ını SADECE koruma açıkken kapat (kopyalama açıkken görünür kalsın) */
body.cp ::selection {
    background: transparent !important;
    color: inherit !important;
}

/* Görsel sürüklemeyi sadece .no-drag sınıfında kapat (global değil) */
img.no-drag {
    -webkit-user-drag: none;
    user-drag: none;
}

.ad-slot {
    display: none !important;
}