/* =========================================================
   Motosiklet.net - Fotoğraf Galerisi Ana Sayfa (home.php) CSS  v3
   Tüm sınıflar "mg-" ile başlar; eski temadaki sınıflarla çakışmaz.
   Font: Montserrat (Türkçe karakterler için latin-ext dahil gelir).
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --mg-ink: #14171c;
  --mg-red: #ae0000;
  --mg-bg: #f2f3f5;
  --mg-card: #ffffff;
  --mg-muted: #6a7380;
  --mg-line: #e1e4e9;
  --mg-gap: 24px;
  --mg-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.mg-wrap,
.mg-wrap * { box-sizing: border-box; }

.mg-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  font-family: var(--mg-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--mg-ink);
  overflow-x: clip;
}
.mg-wrap h1, .mg-wrap h2, .mg-wrap p, .mg-wrap ul { font-family: inherit; }
.mg-wrap img { max-width: 100%; height: auto; }

/* ---------- BAŞLIK ---------- */
.mg-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.mg-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--mg-ink);
}
/* Yarış şeridi: eğik kırmızı çubuk */
.mg-title::before {
  content: "";
  flex: none;
  width: 10px;
  height: 1.1em;
  background: var(--mg-red);
  transform: skewX(-18deg);
}
.mg-head-line { flex: 1; height: 1px; background: var(--mg-line); min-width: 24px; }
.mg-head-count { flex: none; font-size: 14px; font-weight: 600; color: var(--mg-muted); }

/* ---------- ETİKET ŞERİDİ ---------- */
.mg-chips-wrap { position: relative; margin: 0 0 28px; }
.mg-chips {
  list-style: none;
  margin: 0;
  padding: 2px 0 6px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mg-chips::-webkit-scrollbar { display: none; }
.mg-chips li { flex: none; }

/* Kenarlarda silikleşme: kaydırılacak içerik olduğunu gösterir */
.mg-chips-wrap.has-next .mg-chips {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
}
.mg-chips-wrap.has-prev .mg-chips {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent);
          mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent);
}
.mg-chips-wrap.has-prev.has-next .mg-chips {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}

/* Sağ / sol oklar (sadece taşma olduğunda görünür) */
.mg-arrow {
  position: absolute; top: 2px; z-index: 2;
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--mg-line);
  border-radius: 50%;
  background: var(--mg-card);
  color: var(--mg-ink);
  box-shadow: 0 2px 8px rgba(20, 23, 28, .18);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.mg-arrow[hidden] { display: none; }
.mg-arrow svg { width: 16px; height: 16px; display: block; }
.mg-arrow--prev { left: -6px; }
.mg-arrow--next { right: -6px; }
.mg-arrow:hover,
.mg-arrow:focus-visible { background: var(--mg-ink); border-color: var(--mg-ink); color: #fff; }
.mg-arrow:focus-visible { outline: 3px solid var(--mg-red); outline-offset: 2px; }

.mg-chips a,
.mg-all-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 16px;
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-radius: 999px;
  color: var(--mg-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.mg-chips a em,
.mg-all-list a em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--mg-muted); }
.mg-chips a:hover, .mg-chips a:focus-visible,
.mg-all-list a:hover, .mg-all-list a:focus-visible {
  background: var(--mg-ink); border-color: var(--mg-ink); color: #fff;
}
.mg-chips a:hover em, .mg-chips a:focus-visible em,
.mg-all-list a:hover em, .mg-all-list a:focus-visible em { color: #c9ced6; }

/* ---------- GRİD ---------- */
.mg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mg-gap);
}

.mg-card {
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.mg-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.mg-card-link:focus-visible { outline: 3px solid var(--mg-red); outline-offset: -3px; }

.mg-card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #d9dde3;
  overflow: hidden;
}
.mg-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.mg-card:hover .mg-card-img img { transform: scale(1.05); }

.mg-noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--mg-muted); font-size: 14px;
}

.mg-card-body { padding: 16px 18px 20px; }

.mg-card-meta {
  margin: 0 0 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-size: 12px; font-weight: 500; color: var(--mg-muted);
}
.mg-card-tag { color: var(--mg-red); font-weight: 700; }
.mg-card-meta .mg-sep { width: 1px; height: 11px; background: var(--mg-line); }

.mg-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--mg-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mg-card:hover .mg-card-title { color: var(--mg-red); }

.mg-empty { padding: 40px 0; text-align: center; color: var(--mg-muted); }

/* ---------- SAYFALAMA (WP-PageNavi + varsayılan) ---------- */
.mg-pagination { margin-top: 36px; display: flex; justify-content: center; }
.mg-pagination .wp-pagenavi,
.mg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.mg-pagination .wp-pagenavi a,
.mg-pagination .wp-pagenavi span,
.mg-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--mg-line);
  border-radius: 999px;
  background: var(--mg-card);
  color: var(--mg-ink);
  font-family: var(--mg-font);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.mg-pagination .wp-pagenavi a:hover,
.mg-pagination .page-numbers:hover,
.mg-pagination .wp-pagenavi span.current,
.mg-pagination .page-numbers.current {
  background: var(--mg-red); border-color: var(--mg-red); color: #fff;
}
.mg-pagination .wp-pagenavi span.pages { border: 0; background: transparent; color: var(--mg-muted); }

/* ---------- TÜM ETİKETLER ---------- */
.mg-all { margin-top: 36px; border-top: 1px solid var(--mg-line); padding-top: 20px; }
.mg-all summary {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700; color: var(--mg-ink);
}
.mg-all summary::-webkit-details-marker { display: none; }
.mg-all summary::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.mg-all[open] summary::after { transform: rotate(-135deg); }
.mg-all-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- REKLAM ---------- */
.mg-ad { margin-top: 36px; max-width: 100%; overflow: hidden; text-align: center; }

/* ---------- TABLET ---------- */
@media (max-width: 1000px) {
  .mg-wrap { padding: 24px 16px 40px; }
  .mg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-title { font-size: 28px; }
}

/* ---------- MOBİL: yan yana küçük resim + başlık listesi ---------- */
@media (max-width: 600px) {
  :root { --mg-gap: 12px; }
  .mg-wrap { padding: 20px 14px 36px; }

  .mg-head { gap: 12px; }
  .mg-title { font-size: clamp(14px, 4.3vw, 20px); gap: 9px; white-space: nowrap; }
  .mg-title::before { width: 7px; }
  .mg-head-line,
  .mg-head-count { display: none; }

  .mg-chips-wrap { margin: 0 -14px 20px; }
  .mg-chips { padding-left: 14px; padding-right: 14px; }

  .mg-grid { grid-template-columns: minmax(0, 1fr); }
  .mg-card-link { display: grid; grid-template-columns: 46% minmax(0, 1fr); align-items: stretch; }
  .mg-card-img { aspect-ratio: auto; min-height: 124px; height: 100%; }
  .mg-card-body { padding: 12px 14px; align-self: center; }
  .mg-card-title { font-size: 15px; -webkit-line-clamp: 3; }
  .mg-card-meta { font-size: 11px; margin-bottom: 6px; }
}

@media (hover: none) {
  .mg-arrow { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-card-img img, .mg-chips a, .mg-all summary::after { transition: none !important; }
  .mg-card:hover .mg-card-img img { transform: none; }
}
/* =========================================================
   Motosiklet.net - Footer CSS v2: ikonlu düğme menü  (footer.php ile birlikte)
   Tüm sınıflar "mf-" ile başlar; eski tema sınıflarıyla çakışmaz.
   KURULUM: Bu içeriği medya.css'in SONUNA yapıştırın (header.php medya.css'i
   her sayfada yüklüyor). Daha önce eski footer CSS'ini yapıştırdıysanız onu silin.
   Montserrat zaten medya.css'in başında yüklü; ayrıca @import gerekmez.
   ========================================================= */

.mf,
.mf * { box-sizing: border-box; }

.mf {
  --mf-bg: #123e65;                      /* mobil menü çekmecesiyle aynı mavi */
  --mf-tile: rgba(255, 255, 255, .07);
  --mf-tile-hover: rgba(255, 255, 255, .15);
  --mf-line: rgba(255, 255, 255, .15);
  --mf-ico: #9ec5e8;
  --mf-red: #ae0000;
  --mf-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  margin-top: 48px;
  background: var(--mf-bg);
  /* Kapsayıcı dar olsa bile arka plan ekranın iki yanına kadar uzar */
  box-shadow: 0 0 0 100vmax var(--mf-bg);
  clip-path: inset(0 -100vmax);

  color: #fff;
  font-family: var(--mf-font);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.mf p, .mf ul, .mf li { margin: 0; padding: 0; list-style: none; font-family: inherit; }

.mf-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

/* ---------- DÜĞME MENÜ ---------- */
.mf-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.mf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 112px;
  padding: 16px 10px;
  background: var(--mf-tile);
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mf-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--mf-ico);
  transition: background-color .2s ease, color .2s ease;
}
.mf-ico svg { width: 22px; height: 22px; display: block; }

.mf-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mf-btn:hover,
.mf-btn:focus-visible {
  background: var(--mf-tile-hover);
  border-color: rgba(255, 255, 255, .32);
  transform: translateY(-3px);
  color: #fff;
}
.mf-btn:hover .mf-ico,
.mf-btn:focus-visible .mf-ico { background: var(--mf-red); color: #fff; }

.mf a:focus-visible,
.mf button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- ALT ÇUBUK: sosyal + telif ---------- */
.mf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--mf-line);
}

.mf-social { display: flex; flex-wrap: wrap; gap: 8px; }

.mf-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 16px 6px 12px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.mf-soc svg { width: 18px; height: 18px; flex: none; display: block; }
.mf-soc--fb:hover,  .mf-soc--fb:focus-visible  { background: #1877f2; border-color: #1877f2; color: #fff; }
.mf-soc--tw:hover,  .mf-soc--tw:focus-visible  { background: #1d9bf0; border-color: #1d9bf0; color: #fff; }
.mf-soc--rss:hover, .mf-soc--rss:focus-visible { background: #f26522; border-color: #f26522; color: #fff; }

.mf-end { display: flex; align-items: center; gap: 16px; }
.mf-copy { font-size: 13px; color: #c3d6e8; }

.mf-totop {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--mf-line);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.mf-totop svg { width: 16px; height: 16px; display: block; }
.mf-totop:hover { background: var(--mf-red); border-color: var(--mf-red); }

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
  .mf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- MOBİL ---------- */
@media (max-width: 700px) {
  .mf { margin-top: 36px; }
  .mf-inner { padding: 28px 16px 0; }
  .mf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

  .mf-btn { min-height: 98px; padding: 14px 6px; gap: 8px; border-radius: 12px; }
  .mf-ico { width: 40px; height: 40px; }
  .mf-ico svg { width: 20px; height: 20px; }
  .mf-label { font-size: 12px; }

  .mf-bar { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .mf-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mf-soc { padding: 6px 8px; gap: 6px; font-size: 12px; }
  .mf-end { justify-content: space-between; }
}

/* Çok dar ekran: sosyal butonlarda sadece ikon */
@media (max-width: 400px) {
  .mf-soc-t { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mf-btn, .mf-ico, .mf-soc, .mf-totop { transition: none !important; }
  .mf-btn:hover, .mf-btn:focus-visible { transform: none; }
}
