/* ==========================================================================
   Habercim Türkiye
   ========================================================================== */

:root {
    --ink:        #2b3542;
    --ink-2:      #1f2831;
    --ink-3:      #161d24;
    --brand:      #e8252d;
    --brand-dark: #c4151d;
    --bg:         #f1f2f4;
    --surface:    #ffffff;
    --line:       #e1e4e9;
    --line-2:     #d2d7de;
    --text:       #1a2027;
    --muted:      #6b7684;
    --muted-2:    #8b949e;

    --wrap:   1240px;
    --gap:    20px;

    --font-head: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
}

img { max-width: 100%; display: block; }

/* Kuralı olmayan hiçbir ikon metin boyutundan büyük render edilemez. */
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 16px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- üst şerit */

.topbar {
    background: var(--ink-3);
    color: #9aa4b0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__in {
    display: flex; align-items: center; justify-content: space-between;
    height: 34px; gap: 16px;
}
.topbar__date { letter-spacing: .02em; }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a:hover { color: #fff; }
.topbar__social { display: flex; gap: 12px; align-items: center; }
.topbar__social a { display: flex; opacity: .75; transition: opacity .15s; }
.topbar__social a:hover { opacity: 1; }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------------------------------------------------------------- başlık */

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__in {
    display: flex; align-items: center; gap: 24px;
    height: 96px;
}
.logo { display: block; flex-shrink: 0; }
.logo img { height: 56px; width: auto; }

.masthead__search { margin-left: auto; position: relative; }
.search-form { display: flex; align-items: center; }
.search-form input {
    width: 230px; height: 38px;
    border: 1px solid var(--line-2); border-right: 0;
    padding: 0 12px; font: inherit; font-size: 14px;
    background: #f7f8f9; color: var(--text);
    outline: none;
}
.search-form input:focus { background: #fff; border-color: var(--muted-2); }
.search-form button {
    height: 38px; width: 42px;
    border: 0; background: var(--ink); color: #fff;
    cursor: pointer; display: grid; place-items: center;
}
.search-form button:hover { background: var(--brand); }
.search-form svg { width: 16px; height: 16px; fill: currentColor; }

.burger {
    display: none; width: 40px; height: 40px;
    border: 1px solid var(--line-2); background: #fff;
    cursor: pointer; place-items: center; color: var(--ink);
}
.burger svg { width: 20px; height: 20px; fill: currentColor; }

/* ------------------------------------------------------------- ana menü */

.nav { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.nav__in { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nav__in::-webkit-scrollbar { display: none; }

.nav a {
    display: flex; align-items: center;
    padding: 0 15px; height: 44px;
    color: #dbe0e6;
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    letter-spacing: .02em; text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.is-active { color: #fff; border-bottom-color: var(--brand); }
.nav a.nav__author { color: #ffd4d6; }
.nav a.nav__author:hover { color: #fff; background: var(--brand); }

/* --------------------------------------------------------- son dakika */

.breaking {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.breaking__in { display: flex; align-items: center; height: 42px; gap: 0; overflow: hidden; }
.breaking__label {
    background: var(--brand); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 13px;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 0 14px; height: 42px; display: flex; align-items: center;
    flex-shrink: 0; position: relative;
}
.breaking__label::after {
    content: ''; position: absolute; right: -7px; top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent; border-left-color: var(--brand);
}
.breaking__track { flex: 1; overflow: hidden; margin-left: 16px; }
.breaking__list {
    display: flex; gap: 0; align-items: center;
    animation: ticker 60s linear infinite;
    white-space: nowrap;
}
.breaking__in:hover .breaking__list { animation-play-state: paused; }
.breaking__list a {
    font-size: 14px; color: var(--text); padding-right: 36px; position: relative;
}
.breaking__list a::after {
    content: ''; position: absolute; right: 16px; top: 50%;
    width: 4px; height: 4px; background: var(--brand); border-radius: 50%;
    transform: translateY(-50%);
}
.breaking__list a:hover { color: var(--brand); }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .breaking__list { animation: none; }
}

/* ------------------------------------------------------------ düzen */

.main { padding: 22px 0 40px; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

/* ---------------------------------------------------------- bölüm başlığı */

.sec-head {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 14px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 0;
}
.sec-head h2, .sec-head h1 {
    font-size: 19px; text-transform: uppercase; letter-spacing: .02em;
    background: var(--ink); color: #fff;
    padding: 7px 14px; margin: 0;
}
.sec-head--brand h2, .sec-head--brand h1 { background: var(--brand); }
.sec-head--brand { border-bottom-color: var(--brand); }
.sec-head__more {
    margin-left: auto; font-size: 13px; color: var(--muted);
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; padding-bottom: 6px;
}
.sec-head__more:hover { color: var(--brand); }

/* ------------------------------------------------------------- manşet */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    display: block;
}
.card:hover .card__title { color: var(--brand); }

.card__media { position: relative; background: #dde1e6; overflow: hidden; }
.card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__tag {
    position: absolute; left: 0; top: 0; z-index: 2;
    background: var(--brand); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 11px;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 10px;
}

.card__body { padding: 13px 15px 15px; }
.card__title {
    font-family: var(--font-head); font-weight: 700;
    line-height: 1.18; color: var(--text);
    transition: color .15s;
}
.card__dek {
    margin: 7px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.card__meta {
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px; font-size: 11.5px; color: var(--muted-2);
}
.card__source {
    font-weight: 700; color: var(--ink); text-transform: uppercase;
    letter-spacing: .03em; font-size: 11px;
}
.card__meta time::before { content: '·'; margin-right: 8px; color: var(--line-2); }

/* büyük manşet */
.card--lead .card__media { aspect-ratio: 16 / 9; }
.card--lead .card__title { font-size: 28px; }
.card--lead .card__body { padding: 16px 20px 20px; }

/* yan manşet */
.card--side .card__media { aspect-ratio: 16 / 9; }
.card--side .card__title { font-size: 17px; }

/* ızgara kartı */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card--grid .card__media { aspect-ratio: 16 / 10; }
.card--grid .card__title { font-size: 16px; }

/* yatay liste satırı */
.rowcard {
    display: grid; grid-template-columns: 116px minmax(0, 1fr);
    gap: 13px; align-items: start;
    background: var(--surface); border: 1px solid var(--line);
    padding: 11px;
}
.rowcard:hover .card__title { color: var(--brand); }
.rowcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: #dde1e6; }
.rowcard__media img { width: 100%; height: 100%; object-fit: cover; }
.rowcard .card__title { font-size: 15.5px; }
.rowcard .card__meta { margin-top: 7px; }

.rowlist { display: grid; gap: 10px; }

/* ----------------------------------------------------------- kenar çubuğu */

.side { display: grid; gap: 24px; position: sticky; top: 60px; }

.panel { background: var(--surface); border: 1px solid var(--line); }
.panel__head {
    background: var(--ink); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    text-transform: uppercase; letter-spacing: .03em;
    padding: 10px 14px;
}
.panel__head--brand { background: var(--brand); }
.panel__body { padding: 14px; }

/* yazar kutusu */
.authorbox { text-align: center; padding: 20px 16px 18px; }
.authorbox__photo {
    width: 96px; height: 96px; margin: 0 auto 12px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--surface); outline: 2px solid var(--brand);
}
.authorbox__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.authorbox__name { font-size: 19px; font-family: var(--font-head); font-weight: 700; }
.authorbox__title { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.authorbox__bio { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.authorbox__link {
    display: inline-block; background: var(--brand); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 9px 18px;
}
.authorbox__link:hover { background: var(--brand-dark); }

/* numaralı liste */
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: 0; padding-bottom: 0; }
.ranked li:first-child { padding-top: 0; }
.ranked__no {
    font-family: var(--font-head); font-weight: 700; font-size: 22px;
    color: var(--brand); line-height: 1;
}
.ranked__title { font-size: 14px; line-height: 1.4; font-weight: 500; }
.ranked li:hover .ranked__title { color: var(--brand); }
.ranked__meta { font-size: 11px; color: var(--muted-2); margin-top: 4px; }

/* kaynak listesi */
.sources { display: flex; flex-wrap: wrap; gap: 6px; }
.sources a {
    font-size: 12px; border: 1px solid var(--line-2); padding: 5px 9px;
    color: var(--muted); background: #fafbfc;
}
.sources a:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------- yazı sayfası */

.article {
    background: var(--surface); border: 1px solid var(--line); padding: 28px 34px 34px;
}
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; color: var(--line-2); }

.article__kicker {
    display: inline-block; background: var(--brand); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 12px;
    letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px;
    margin-bottom: 12px;
}
.article__title { font-size: 34px; line-height: 1.14; margin: 0 0 14px; }
.article__dek { font-size: 17.5px; color: #44505d; line-height: 1.55; margin: 0 0 20px; font-weight: 400; }

.byline {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}
.byline__photo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.byline__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.byline__name { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.byline__name:hover { color: var(--brand); }
.byline__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.byline__share { margin-left: auto; display: flex; gap: 7px; }
.byline__share a {
    width: 34px; height: 34px; display: grid; place-items: center;
    background: #f1f3f5; color: var(--ink);
}
.byline__share a:hover { background: var(--ink); color: #fff; }
.byline__share svg { width: 15px; height: 15px; fill: currentColor; }

.article__cover { margin: 0 0 22px; }
.article__cover img { width: 100%; }

.prose { font-size: 16.5px; line-height: 1.75; color: #222a33; }
.prose p { margin: 0 0 18px; }
.prose h2 {
    font-size: 23px; margin: 30px 0 13px;
    padding-left: 12px; border-left: 4px solid var(--brand);
}
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose code {
    background: #f1f3f5; padding: 2px 6px; font-size: 14.5px;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    border: 1px solid var(--line);
}
.prose blockquote {
    margin: 22px 0; padding: 4px 0 4px 20px;
    border-left: 4px solid var(--brand); color: #44505d; font-size: 18px;
}
.prose strong { font-weight: 700; color: var(--text); }

/* derlenen haber kutusu */
.sourcebox {
    border: 1px solid var(--line); background: #fafbfc;
    padding: 20px; margin: 22px 0 0;
}
.sourcebox__label {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 700; margin-bottom: 8px;
}
.sourcebox__name { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.btn-source {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--brand); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    text-transform: uppercase; letter-spacing: .03em;
    padding: 12px 22px;
}
.btn-source:hover { background: var(--brand-dark); }
.btn-source svg { width: 15px; height: 15px; fill: currentColor; }
.sourcebox__note { font-size: 12.5px; color: var(--muted-2); margin: 13px 0 0; line-height: 1.6; }

/* --------------------------------------------------------- yazar sayfası */

.profile {
    background: var(--surface); border: 1px solid var(--line);
    padding: 30px; display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 28px;
    margin-bottom: 26px;
}
.profile__photo { width: 150px; height: 150px; overflow: hidden; border: 1px solid var(--line); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile__name { font-size: 31px; margin: 0 0 5px; }
.profile__role { font-size: 14.5px; color: var(--brand); font-weight: 700; margin-bottom: 14px; }
.profile__bio { font-size: 15.5px; line-height: 1.7; color: #3a4553; margin: 0 0 16px; }
.profile__links { display: flex; flex-wrap: wrap; gap: 8px; }
.profile__links a {
    font-size: 13px; border: 1px solid var(--line-2); padding: 7px 13px;
    display: inline-flex; align-items: center; gap: 7px; color: var(--ink);
}
.profile__links a:hover { border-color: var(--brand); color: var(--brand); }
.profile__links svg { width: 14px; height: 14px; fill: currentColor; }

.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.topics span {
    font-size: 12px; background: #f1f3f5; color: var(--muted);
    padding: 5px 10px; border: 1px solid var(--line);
}

/* --------------------------------------------------------------- sayfalama */

.pager { display: flex; justify-content: center; gap: 5px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--line);
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    color: var(--ink); padding: 0 12px;
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-gap { border: 0; background: none; color: var(--muted-2); min-width: 24px; }

/* ----------------------------------------------------------------- notice */

.notice {
    background: #fff8e6; border: 1px solid #f0dca8; color: #6b5420;
    padding: 14px 16px; font-size: 13.5px; line-height: 1.6; margin-bottom: 20px;
}

.empty {
    background: var(--surface); border: 1px solid var(--line);
    padding: 50px 24px; text-align: center; color: var(--muted);
}
.empty h2 { font-size: 22px; color: var(--text); margin-bottom: 8px; }

/* ------------------------------------------------------------------ alt */

.footer { background: var(--ink-2); color: #a8b2bd; margin-top: 10px; }
.footer__top { padding-top: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.footer__logo { display: block; }
.footer__logo img { height: 46px; width: auto; margin-bottom: 14px; }
.footer__about { font-size: 13.5px; line-height: 1.65; margin: 0 0 16px; }
.footer h3 {
    font-size: 14px; color: #fff; text-transform: uppercase;
    letter-spacing: .05em; margin: 0 0 14px;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 9px; }
.footer__links a { font-size: 13.5px; }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 9px; margin-top: 4px; }
.footer__social a {
    width: 36px; height: 36px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #dbe0e6;
}
.footer__social a:hover { background: var(--brand); color: #fff; }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__bottom {
    padding-top: 18px; padding-bottom: 18px; font-size: 12.5px;
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer__bottom a:hover { color: #fff; }
.footer__disclaimer {
    font-size: 12px; line-height: 1.6; color: #7d8894;
    padding-bottom: 18px; max-width: 900px;
}

/* ------------------------------------------------------------- duyarlılık */

@media (max-width: 1080px) {
    .layout { grid-template-columns: minmax(0,1fr); }
    .side { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); display: grid; }
    .grid--4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 860px) {
    .hero { grid-template-columns: minmax(0,1fr); }
    .hero__side { grid-template-rows: auto; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .card--lead .card__title { font-size: 23px; }
    .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .profile { grid-template-columns: minmax(0,1fr); text-align: center; }
    .profile__photo { margin: 0 auto; }
    .profile__links { justify-content: center; }
    .article { padding: 22px 20px 26px; }
    .article__title { font-size: 26px; }
    .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
}

@media (max-width: 620px) {
    .masthead__in { height: 72px; gap: 12px; }
    .logo img { height: 40px; }
    .masthead__search { display: none; }
    .burger { display: grid; margin-left: auto; }
    .topbar__links { display: none; }
    .hero__side { grid-template-columns: minmax(0,1fr); }
    .grid, .grid--4, .grid--2 { grid-template-columns: minmax(0,1fr); }
    .side { grid-template-columns: minmax(0,1fr); }
    .card--lead .card__title { font-size: 20px; }
    .article__title { font-size: 23px; }
    .article__dek { font-size: 16px; }
    .prose { font-size: 16px; }
    .footer__grid { grid-template-columns: minmax(0,1fr); }
    .nav a { font-size: 14px; padding: 0 12px; height: 42px; }
}

/* mobil menü açıkken */
.nav.is-open .nav__in {
    flex-direction: column; align-items: stretch;
    max-height: 70vh; overflow-y: auto;
}
.nav.is-open a { height: 46px; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ---------------------------------------------------- ayrıştırma notu */

.disambig {
    background: #fff8e6; border: 1px solid #f0dca8; color: #6b5420;
    border-left: 3px solid #d8b55a;
    padding: 13px 16px; font-size: 13.5px; line-height: 1.6;
    margin: 0 0 24px;
}

/* ------------------------------------------------------------------ SSS */

.faq { display: grid; gap: 9px; }
.faq__item {
    background: var(--surface); border: 1px solid var(--line);
}
.faq__item summary {
    cursor: pointer; padding: 14px 18px; list-style: none;
    font-family: var(--font-head); font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+'; font-size: 24px; color: var(--brand); line-height: 1;
    font-weight: 400; flex-shrink: 0;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:hover { color: var(--brand); }
.faq__item p {
    margin: 0; padding: 0 18px 17px; font-size: 15px;
    line-height: 1.7; color: #3a4553;
}

/* profil fotoğrafı biraz daha büyük */
.profile { grid-template-columns: 170px minmax(0,1fr); }
.profile__photo { width: 170px; height: 170px; }
