/* assets/css/theme-modern.css: Modern (mobil öncelikli) ön yüz teması */
:root {
    --m-blue: #00509e;
    --m-blue-dark: #00386e;
    --m-green: #88c542;
    --m-cyan: #00a0e3;
    --m-bg: #f3f6fb;
    --m-surface: #ffffff;
    --m-text: #14233a;
    --m-muted: #64748b;
    --m-border: rgba(15, 40, 80, .09);
    --m-shadow: 0 6px 22px rgba(15, 40, 80, .08);
    --m-radius: 18px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --m-bg: #0c1626;
        --m-surface: #14233a;
        --m-text: #e8eef7;
        --m-muted: #93a4bb;
        --m-border: rgba(255, 255, 255, .09);
        --m-shadow: 0 6px 22px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.m-body {
    margin: 0; background: var(--m-bg); color: var(--m-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.m-body a { color: inherit; text-decoration: none; }
.m-body img { max-width: 100%; display: block; }
.m-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Üst çubuk ---------- */
.m-header {
    position: sticky; top: 0; z-index: 50; color: #fff; overflow: hidden;
    /* OBB renkleri: lacivert → mavi → gökyüzü mavisi */
    background:
        radial-gradient(circle at 12% 120%, rgba(0, 160, 227, .55) 0, rgba(0, 160, 227, 0) 45%),
        radial-gradient(circle at 92% -40%, rgba(136, 197, 66, .35) 0, rgba(136, 197, 66, 0) 40%),
        linear-gradient(115deg, #001f3f 0%, #00386e 45%, #00509e 100%);
    box-shadow: 0 6px 22px rgba(0, 30, 70, .28);
}
/* Alt kenarda logodaki mavi-yeşil geçişli şerit */
.m-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, #00a0e3 0%, #00a0e3 35%, #88c542 100%);
}
.m-header-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding-bottom: 4px; gap: 8px; }

.m-logo {
    justify-self: start; width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 3px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 4px 12px rgba(0, 0, 0, .3);
}
.m-logo img { width: 100%; height: 100%; object-fit: contain; }

.m-title { text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.m-title .t1 { font-size: clamp(1.35rem, 5.6vw, 1.9rem); font-weight: 800; letter-spacing: 1.5px; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.m-title .t1 b { color: var(--m-green); font-weight: 800; }
.m-title .t2 { margin-top: 5px; font-size: clamp(.62rem, 2.3vw, .78rem); letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .82); font-weight: 600; }
.m-title .t2::before, .m-title .t2::after { content: ""; display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin: 0 7px; border-radius: 2px; background: linear-gradient(90deg, #00a0e3, #88c542); }

.m-header-right { justify-self: end; }
.m-header-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .88rem; font-weight: 600;
    min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff !important;
}
.m-header-link:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 480px) {
    .m-header-link span { display: none; }
    .m-header-link { padding: 0; width: 44px; }
    .m-logo { width: 42px; height: 42px; }
    .m-title .t2::before, .m-title .t2::after { width: 8px; margin: 0 5px; }
}

/* ---------- Sayfa başlığı & sekmeler ---------- */
.m-intro { padding: 22px 0 8px; }
.m-intro h1 { margin: 0 0 4px; font-size: clamp(1.35rem, 4.5vw, 1.9rem); font-weight: 800; }
.m-intro p { margin: 0; color: var(--m-muted); font-size: .95rem; }

.m-tabs {
    display: flex; gap: 6px; padding: 5px; margin: 14px 0 20px;
    background: var(--m-surface); border: 1px solid var(--m-border); border-radius: 999px; box-shadow: var(--m-shadow);
}
.m-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 10px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--m-muted);
    min-height: 46px; transition: .2s;
}
.m-tab .cnt { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--m-bg); color: var(--m-muted); font-weight: 700; }
.m-tab.active { background: linear-gradient(120deg, var(--m-blue), var(--m-cyan)); color: #fff; box-shadow: 0 4px 14px rgba(0, 80, 158, .35); }
.m-tab.active .cnt { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- Öne çıkan haber ---------- */
.m-hero {
    position: relative; display: block; overflow: hidden; border-radius: var(--m-radius);
    aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--m-blue-dark), var(--m-cyan)); box-shadow: var(--m-shadow);
    margin-bottom: 22px;
}
.m-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.m-hero:hover img { transform: scale(1.04); }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 16, 38, .92) 0%, rgba(4, 16, 38, .35) 48%, rgba(4, 16, 38, 0) 75%); }
.m-hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; color: #fff; }
.m-hero-body h2 { margin: 8px 0 6px; font-size: clamp(1.15rem, 4.6vw, 1.9rem); line-height: 1.25; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-hero-body p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; display: none; }
.m-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--m-green); color: #12300a; }
.m-hero .m-date { color: rgba(255, 255, 255, .8); font-size: .8rem; margin-left: 8px; }

/* ---------- Kart ızgarası ---------- */
.m-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.m-card {
    display: flex; flex-direction: column; overflow: hidden; background: var(--m-surface);
    border: 1px solid var(--m-border); border-radius: var(--m-radius); box-shadow: var(--m-shadow); transition: transform .2s, box-shadow .2s;
}
.m-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 40, 80, .16); }
.m-thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #cfe0f3, #e7f1fb); overflow: hidden; }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: rgba(0, 80, 158, .35); }
.m-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.m-date { font-size: .78rem; color: var(--m-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.m-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-card p { margin: 0; color: var(--m-muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-more { margin-top: auto; color: var(--m-blue); font-weight: 700; font-size: .85rem; }
@media (prefers-color-scheme: dark) { .m-more { color: var(--m-cyan); } .m-thumb { background: linear-gradient(135deg, #1b3150, #223a5e); } }

.m-empty { text-align: center; padding: 56px 16px; color: var(--m-muted); }
.m-empty i { font-size: 3rem; display: block; margin-bottom: 10px; opacity: .6; }

/* ---------- Sayfalama ---------- */
.m-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px 0 8px; flex-wrap: wrap; }
.m-pager a, .m-pager span.btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 999px;
    background: var(--m-surface); border: 1px solid var(--m-border); box-shadow: var(--m-shadow); font-weight: 700; font-size: .92rem;
}
.m-pager a:hover { background: var(--m-blue); color: #fff; }
.m-pager .disabled { opacity: .4; pointer-events: none; }
.m-pager-info { font-weight: 700; color: var(--m-muted); font-size: .9rem; }
.m-pager-total { text-align: center; color: var(--m-muted); font-size: .8rem; margin-bottom: 8px; }

/* ---------- Alt bilgi ---------- */
.m-footer { margin-top: 44px; background: linear-gradient(120deg, #001f3f, var(--m-blue-dark)); color: rgba(255, 255, 255, .85); padding: 34px 0 26px; }
.m-footer .cols { display: grid; grid-template-columns: 1fr; gap: 22px; }
.m-footer h4 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.m-footer .row-i { display: flex; gap: 10px; margin: 6px 0; font-size: .92rem; }
.m-footer .row-i i { color: var(--m-green); }
.m-social { display: flex; gap: 10px; }
.m-social a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; }
.m-social a:hover { background: var(--m-green); color: #12300a; }
.m-copy { font-size: .85rem; color: rgba(255, 255, 255, .8); text-align: center; }
.m-footer { padding: 22px 0; }
/* Detay sayfasında sabit alt eylem çubuğu (mobil) telif satırını örtmesin */
@media (max-width: 767px) { .m-footer-slim { margin-bottom: 78px; } }

/* ---------- Haber detayı ---------- */
.m-article { max-width: 860px; margin: 0 auto; padding: 18px 16px 110px; }
.m-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--m-blue); margin-bottom: 14px; min-height: 40px; }
@media (prefers-color-scheme: dark) { .m-back { color: var(--m-cyan); } }
.m-article h1 { margin: 10px 0 12px; font-size: clamp(1.45rem, 5.4vw, 2.3rem); line-height: 1.25; font-weight: 800; }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--m-muted); font-size: .85rem; margin-bottom: 16px; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--m-surface); border: 1px solid var(--m-border); font-weight: 600; }
.m-cover { display: block; border-radius: var(--m-radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--m-shadow); background: #000; }
.m-cover img { width: 100%; max-height: 560px; object-fit: contain; }
.m-content { background: var(--m-surface); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 18px 16px; font-size: 1.06rem; line-height: 1.8; box-shadow: var(--m-shadow); overflow-wrap: anywhere; }
.m-content p { margin: 0 0 1em; }
.m-content img, .m-content video, .m-content iframe { max-width: 100% !important; height: auto; border-radius: 12px; }
.m-content table { display: block; max-width: 100%; overflow-x: auto; }
.m-content a { color: var(--m-blue); text-decoration: underline; }

.m-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--m-surface); border-top: 1px solid var(--m-border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
}
/* Eylem düğmeleri: ikon rozetli, iki satırlı, OBB renkli */
.m-btn {
    position: relative; overflow: hidden; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 8px 14px; border-radius: 16px; border: 0; cursor: pointer; font-family: inherit; color: #fff !important;
    text-align: left; transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
.m-btn::before { /* hafif parlama */
    content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); pointer-events: none;
}
.m-btn .ico {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.m-btn .txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.m-btn .txt strong { font-size: .98rem; font-weight: 800; letter-spacing: .2px; }
.m-btn .txt small { margin-top: 3px; font-size: .72rem; font-weight: 600; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.m-btn:active { transform: translateY(0) scale(.98); }
.m-btn:focus-visible { outline: 3px solid rgba(0, 160, 227, .55); outline-offset: 2px; }

/* Metni Kopyala: OBB mavisi */
.m-btn-copy { background: linear-gradient(120deg, #00386e 0%, #00509e 55%, #00a0e3 130%); box-shadow: 0 6px 16px rgba(0, 80, 158, .38); }
.m-btn-copy:hover { box-shadow: 0 10px 22px rgba(0, 80, 158, .48); }
/* Paketi İndir: OBB yeşili */
.m-btn-zip { background: linear-gradient(120deg, #4f9a1d 0%, #6fa532 45%, #88c542 120%); box-shadow: 0 6px 16px rgba(111, 165, 50, .42); }
.m-btn-zip:hover { box-shadow: 0 10px 22px rgba(111, 165, 50, .52); }
.m-btn { flex: 1 1 0; min-width: 0; }
.m-btn .txt strong { white-space: nowrap; }
/* Telefon: iki düğme yan yana sığsın, yazılar tek satırda kalsın */
@media (max-width: 520px) {
    .m-actions { gap: 8px; padding-left: 10px; padding-right: 10px; }
    .m-btn { gap: 8px; padding: 8px 10px; min-height: 52px; border-radius: 14px; }
    .m-btn .ico { width: 32px; height: 32px; border-radius: 10px; font-size: 1.05rem; }
    .m-btn .txt strong { font-size: .86rem; letter-spacing: 0; }
    .m-btn .txt small { display: none; }
}
@media (max-width: 340px) {
    .m-btn .ico { display: none; }
    .m-btn { justify-content: center; }
}

.m-media h2 { font-size: 1.15rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.m-media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-media-grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--m-shadow); }
.m-media-grid img, .m-media-grid video { width: 100%; height: 100%; object-fit: cover; }
.m-media-grid video { opacity: .65; }
.m-media-grid .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.6rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.m-media-grid .tag { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #dc3545; color: #fff; }

/* ---------- Geniş ekran ---------- */
@media (min-width: 640px) {
    .m-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .m-hero { aspect-ratio: 16 / 8; }
    .m-hero-body { padding: 26px; }
    .m-hero-body p { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .m-footer .cols { grid-template-columns: 2fr 1.4fr 1fr; }
    .m-media-grid { grid-template-columns: repeat(3, 1fr); }
    .m-content { padding: 28px 30px; }
}
@media (min-width: 1024px) {
    .m-grid { grid-template-columns: repeat(3, 1fr); }
    .m-hero { aspect-ratio: 21 / 8; }
    .m-media-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
    /* Masaüstünde eylem çubuğu sabit alt çubuk yerine içerikte durur */
    .m-article { padding-bottom: 50px; }
    .m-actions { position: static; border: 0; box-shadow: none; background: transparent; padding: 0; margin: 0 0 18px; }
    .m-btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
