/* ==========================================================================
   Manşet — ek widget'lar (mw-*). Renkler main.css değişkenlerinden gelir;
   [data-theme="dark"] altında otomatik uyum sağlar.
   ========================================================================== */

.mw-empty,
.mw-hint { margin: 0; font-size: 13px; color: var(--muted); }
.mw-hint { padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--card-soft); }
.mw-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.mw-more { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--primary); }
.mw-more:hover { text-decoration: underline; }

/* ---------- Sekmeli haberler ---------- */
.mw-tabs__list { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: var(--radius-sm); background: var(--card-soft); }
.mw-tabs__tab {
	flex: 1; min-width: 0; padding: 8px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--muted);
	font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mw-tabs__tab:hover { color: var(--text); }
.mw-tabs__tab.is-active,
.mw-tabs__tab[aria-selected="true"] { background: var(--primary); color: #fff; }
.mw-tabs__tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mw-tabs__panel:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.mw-tabs__panel[hidden] { display: none; }

/* ---------- Son depremler ---------- */
.mw-quakes { list-style: none; margin: 0; padding: 0; }
.mw-quakes__item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mw-quakes__item:last-child { border-bottom: 0; }
.mw-quakes__mag.quake-mag { flex: 0 0 auto; min-width: 42px; height: 30px; font-size: 14px; border-radius: 6px; }
.mw-quakes__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mw-quakes__place { font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.mw-quakes__meta { font-size: 11px; color: var(--muted); }

/* ---------- Puan durumu ---------- */
.mw-standings { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mw-standings th { padding: 6px 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; border-bottom: 1px solid var(--border); }
.mw-standings th abbr { text-decoration: none; cursor: help; }
.mw-standings td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--border); }
.mw-standings tbody tr:last-child td { border-bottom: 0; }
.mw-standings tbody tr:nth-child(odd) td { background: var(--card-soft); }
.mw-standings .mw-standings__team { text-align: left; }
.mw-standings td.mw-standings__team { font-weight: 600; max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-standings__team img { display: inline-block; width: 18px; height: 18px; margin-right: 6px; object-fit: contain; vertical-align: -4px; }
.mw-standings__rank { width: 26px; font-weight: 700; color: var(--muted); }
.mw-standings__pts { font-weight: 800; color: var(--text); }
.mw-standings tbody tr:nth-child(-n+4) .mw-standings__rank { color: var(--primary); }

/* ---------- Nöbetçi eczane ---------- */
.mw-pharmacy { display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center; margin: 0; }
.mw-pharmacy__icon {
	position: relative; width: 44px; height: 44px; border-radius: var(--radius-sm); background: #dc2626;
}
.mw-pharmacy__icon::before,
.mw-pharmacy__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.mw-pharmacy__icon::before { width: 22px; height: 7px; }
.mw-pharmacy__icon::after { width: 7px; height: 22px; }
.mw-pharmacy__text { margin: 0; font-size: 13px; color: var(--text-soft, var(--text)); line-height: 1.4; }
.widget .mw-pharmacy__select,
.mw-pharmacy__select { grid-column: 1 / -1; width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--text); font: inherit; }
.mw-pharmacy__btn { grid-column: 1 / -1; width: 100%; justify-content: center; }

/* ---------- Döviz çevirici (main.js .converter işaretlemesi) ---------- */
.mw-converter .mw-converter__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.mw-converter .mw-converter__row input { grid-column: 1 / -1; width: 100%; }
.mw-converter .mw-converter__row select { width: 100%; min-width: 0; padding: 0 8px; }
.mw-converter .mw-converter__row .btn { height: 42px; padding: 0 12px; }
.mw-converter .mw-converter__row output {
	grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card-soft);
	font-size: 20px; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

/* ---------- E-bülten ---------- */
.mw-newsletter { padding: 16px; border-radius: var(--radius); background: var(--card-soft); border: 1px solid var(--border); }
.mw-newsletter__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; margin-bottom: 10px; }
.mw-newsletter__text { margin: 0 0 12px; font-size: 14px; color: var(--text-soft, var(--text)); line-height: 1.45; }
.mw-newsletter__form { position: relative; display: flex; flex-direction: column; gap: 8px; }
.mw-newsletter__form input[type="email"] {
	width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--card); color: var(--text); font: inherit; outline: none;
}
.mw-newsletter__form input[type="email"]:focus { border-color: var(--primary); }
.mw-newsletter__form .btn { width: 100%; height: 44px; justify-content: center; border-radius: var(--radius-sm); }
.mw-newsletter__msg { margin: 0; font-size: 13px; }
.mw-newsletter__msg:empty { display: none; }

/* ---------- Kategoriler ---------- */
.mw-cats { list-style: none; margin: 0; padding: 0; }
.mw-cats__item { border-bottom: 1px solid var(--border); }
.mw-cats__item:last-child { border-bottom: 0; }
.mw-cats__item a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--text); font-weight: 600; font-size: 14px; }
.mw-cats__item a:hover,
.mw-cats__item.is-current a { color: var(--cat-color, var(--primary)); }
.mw-cats__dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--cat-color, var(--primary)); }
.mw-cats__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-cats__count { flex: 0 0 auto; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--card-soft); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

/* ---------- Yazarlar ---------- */
.mw-authors { list-style: none; margin: 0; padding: 0; }
.mw-authors__item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mw-authors__item:last-child { border-bottom: 0; }
.mw-authors__avatar { flex: 0 0 48px; }
.mw-authors__avatar img { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.mw-authors__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.mw-authors__name { font-weight: 800; font-size: 14px; color: var(--text); }
.mw-authors__post { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mw-authors__name:hover,
.mw-authors__post:hover { color: var(--primary); }

/* ---------- Son yorumlar ---------- */
.mw-comments { list-style: none; margin: 0; padding: 0; }
.mw-comments__item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mw-comments__item:last-child { border-bottom: 0; }
.mw-comments__avatar { flex: 0 0 40px; }
.mw-comments__avatar img { display: block; width: 40px; height: 40px; border-radius: 50%; }
.mw-comments__body { min-width: 0; font-size: 13px; line-height: 1.4; }
.mw-comments__author { font-weight: 800; color: var(--text); }
.mw-comments__text { color: var(--text-soft, var(--text)); overflow-wrap: anywhere; }
.mw-comments__text:hover { color: var(--primary); }
.mw-comments__post { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Görsel banner ---------- */
.mw-banner { line-height: 0; }
.mw-banner__link { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.mw-banner__img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.mw-banner__link:hover .mw-banner__img { opacity: .92; }
.mw-banner__link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Footer sütunlarında koyu zemin uyumu ---------- */
.footer-widget .mw-tabs__list,
.footer-widget .mw-newsletter,
.footer-widget .mw-cats__count { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.footer-widget .mw-cats__item a,
.footer-widget .mw-authors__name,
.footer-widget .mw-comments__author { color: inherit; }
.footer-widget .mw-cats__item,
.footer-widget .mw-authors__item,
.footer-widget .mw-comments__item,
.footer-widget .mw-quakes__item { border-color: rgba(255, 255, 255, .08); }

@media (prefers-reduced-motion: reduce) {
	.mw-tabs__tab { transition: none; }
}
