/* D&G Tan Hukuk — Makaleler bolumu (/makaleler/) */

/* style.css'teki genel `nav` kurali (beyaz zemin + ust cizgi) sayfa ici
   nav ogelerine bulasmasin */
nav.breadcrumb,
nav.article-nav {
    background: transparent;
    border-top: none;
}

/* ayni sekilde genel `header` kurali (beyaz zemin + golge + sticky)
   makale basligina uygulanmasin */
header.article-header {
    position: static;
    background: transparent;
    box-shadow: none;
}

/* --- Sayfa yolu (breadcrumb) --- */
.breadcrumb {
    margin: 25px 0 -15px;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover {
    color: var(--accent-color);
}
.breadcrumb span {
    margin: 0 4px;
}

/* --- Makale govdesi --- */
.article {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.article-header {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.article-kicker {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.article h1 {
    color: var(--primary-color);
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-light);
}
.article-meta i {
    margin-right: 4px;
    color: var(--accent-color);
}
.article-meta span {
    margin: 0 6px;
}
.article-meta a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-light);
}
.article-meta a:hover {
    color: var(--accent-color);
}

.article-lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--primary-color);
    margin-bottom: 28px;
}

.article h2 {
    color: var(--secondary-color);
    font-size: 24px;
    margin: 38px 0 14px;
    scroll-margin-top: 90px;
}

.article h3 {
    color: var(--secondary-color);
    font-size: 19px;
    margin: 26px 0 8px;
}

.article p {
    line-height: 1.85;
    margin-bottom: 18px;
}

.article a {
    color: var(--accent-color);
}

.article strong {
    color: var(--primary-color);
}

/* --- Ozet kutusu --- */
.keybox {
    background: #f4f8fb;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin: 0 0 30px;
}
.keybox h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--primary-color);
}
.keybox ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.keybox li {
    padding: 7px 0 7px 22px;
    position: relative;
    line-height: 1.6;
}
.keybox li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- Icindekiler --- */
.toc {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    padding: 22px 30px;
    margin-bottom: 10px;
}
.toc h2 {
    margin: 0 0 10px;
    font-size: 17px;
    color: var(--primary-color);
}
.toc ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-light);
}
.toc li {
    padding: 4px 0;
}
.toc a {
    color: var(--secondary-color);
    text-decoration: none;
}
.toc a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Kural listeleri --- */
.article ul.rule-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.article ul.rule-list li {
    position: relative;
    padding: 10px 0 10px 26px;
    border-bottom: 1px solid #efefef;
    line-height: 1.7;
}
.article ul.rule-list li:last-child {
    border-bottom: none;
}
.article ul.rule-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 12px;
    color: var(--accent-color);
}

/* --- Karsilastirma tablosu --- */
.table-wrap {
    overflow-x: auto;
    margin: 0 0 22px;
    -webkit-overflow-scrolling: touch;
}

/* Tablo kaydirilabilir oldugunda gorunen ipucu (yalnizca dar ekranda) */
.table-hint {
    display: none;
    font-size: 13px;
    font-style: italic;
    color: var(--text-light);
    margin: -14px 0 20px;
}
.table-hint i {
    color: var(--accent-color);
    margin-right: 6px;
}
@media (max-width: 860px) {
    .table-hint {
        display: block;
    }
}
table.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 560px;
}
table.compare caption {
    caption-side: bottom;
    text-align: left;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 10px;
    font-style: italic;
}
table.compare th,
table.compare td {
    border: 1px solid #e3e3e3;
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
    line-height: 1.6;
}
table.compare thead th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}
table.compare tbody th {
    background: #f6f8f9;
    color: var(--primary-color);
    width: 130px;
}

/* --- SSS --- */
.faq h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 22px 0 6px;
}
.faq p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* --- Uyari ve yazar kutulari --- */
.disclaimer {
    background: #fdf7ec;
    border-left: 4px solid #e0a53c;
    border-radius: var(--border-radius);
    padding: 18px 24px;
    margin: 38px 0 25px;
    font-size: 14px;
}
.disclaimer p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-light);
}
.disclaimer i {
    color: #e0a53c;
    margin-right: 6px;
}

.author-box {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 30px;
}
.author-box h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--primary-color);
}
.author-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.article-nav {
    text-align: center;
}

/* .article a kuralini ezip butonun yazisi beyaz kalsin */
.article a.btn,
.article a.btn:hover {
    color: var(--white);
}

/* --- Sebep tablosu (genis, 4 sutun) --- */
table.grounds {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 720px;
}
table.grounds caption {
    caption-side: bottom;
    text-align: left;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 10px;
    font-style: italic;
}
table.grounds th,
table.grounds td {
    border: 1px solid #e3e3e3;
    padding: 11px 13px;
    vertical-align: top;
    text-align: left;
    line-height: 1.55;
}
table.grounds thead th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}
table.grounds tbody th {
    background: #f6f8f9;
    color: var(--primary-color);
    font-weight: 600;
    width: 210px;
}
table.grounds tbody tr:hover td {
    background: #fbfcfd;
}
table.grounds .law {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--secondary-color);
}

/* Yol rozetleri */
.tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    margin: 0 4px 4px 0;
}
.tag-dava {
    background: #e8f1f8;
    color: #1f6191;
}
.tag-icra {
    background: #fdf1e3;
    color: #a86a16;
}
.tag-fesih {
    background: #eef0f2;
    color: var(--secondary-color);
}

/* --- Numarali surec adimlari --- */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 18px 52px;
    line-height: 1.75;
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps > li::after {
    content: "";
    position: absolute;
    left: 15.5px;
    top: 36px;
    bottom: 4px;
    width: 1px;
    background: #dde5ea;
}
.steps > li:last-child {
    padding-bottom: 0;
}
.steps > li:last-child::after {
    display: none;
}
.steps > li strong {
    display: block;
    color: var(--primary-color);
}

/* --- Sik yapilan hatalar --- */
.mistakes {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 16px;
}
.mistakes > li {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-left: 4px solid #d9534f;
    border-radius: var(--border-radius);
    padding: 18px 22px;
}
.mistakes h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    color: #b3413d;
    line-height: 1.5;
}
.mistakes h3::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 9px;
    font-size: 13px;
}
.mistakes p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}
.mistakes .fix {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e6e6e6;
    color: var(--secondary-color);
}
.mistakes .fix::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #3c8f5a;
    margin-right: 8px;
    font-size: 12px;
}

/* --- Bilgi kutusu --- */
.note {
    background: #f4f8fb;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 16px 22px;
    margin: 0 0 24px;
}
.note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}
.note p + p {
    margin-top: 10px;
}

/* --- Makale sonu: ilgili yazi --- */
.related-article {
    display: block;
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 30px;
    text-decoration: none;
    transition: var(--transition);
}
.related-article:hover {
    border-color: #d5e4ef;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}
.related-article .rel-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 6px;
}
.related-article .rel-title {
    display: block;
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

/* --- Makale listesi (/makaleler/) --- */
.articles-intro {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: var(--white);
    padding: 45px 40px;
    border-radius: var(--border-radius);
    margin: 40px 0 30px;
    text-align: center;
}
.articles-intro h1 {
    margin: 0 0 12px;
    font-size: 2.3em;
    line-height: 1.25;
}
.articles-intro p {
    margin: 0 auto;
    max-width: 680px;
    font-size: 1.05em;
    opacity: 0.95;
    line-height: 1.7;
}

.article-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 22px;
}

.article-card {
    background: var(--white);
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    padding: 26px 30px;
    transition: var(--transition);
}
.article-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    transform: translateY(-2px);
    border-color: #d5e4ef;
}
.article-card h2 {
    font-size: 21px;
    margin: 0 0 8px;
    line-height: 1.35;
}
.article-card h2 a {
    color: var(--primary-color);
    text-decoration: none;
}
.article-card h2 a:hover {
    color: var(--accent-color);
}
.article-card .card-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.article-card .card-meta .cat {
    display: inline-block;
    background: #eef4f9;
    color: var(--accent-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 8px;
}
.article-card p.card-excerpt {
    margin: 0 0 12px;
    line-height: 1.75;
    color: var(--text-color);
}
.article-card .card-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}
.article-card .card-more:hover {
    text-decoration: underline;
}

.related-links {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-top: 30px;
}
.related-links h2 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0 0 10px;
}
.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-links li {
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}
.related-links li:last-child {
    border-bottom: none;
}
.related-links a {
    color: var(--secondary-color);
    text-decoration: none;
}
.related-links a:hover {
    color: var(--accent-color);
}

/* --- Mobil --- */
@media (max-width: 768px) {
    .article {
        padding: 25px 20px;
    }
    .article h1 {
        font-size: 25px;
    }
    .article-lead {
        font-size: 17px;
    }
    .article h2 {
        font-size: 21px;
    }
    .keybox,
    .toc,
    .author-box,
    .related-links {
        padding: 20px;
    }
    .articles-intro {
        padding: 32px 22px;
    }
    .articles-intro h1 {
        font-size: 1.7em;
    }
    .article-card {
        padding: 22px 20px;
    }
    .mistakes > li {
        padding: 16px 18px;
    }
    .note,
    .related-article {
        padding: 16px 18px;
    }
    .steps > li {
        padding-left: 44px;
    }
    .article-meta span {
        display: block;
        height: 0;
        overflow: hidden;
        margin: 0;
    }
}
