:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #eef3f0;
  --accent: #0e8a5f;
  --text: #1c2b25;
  --ink: #04140e;

  /* ATIK KATEGORİLERİ */

  --paper: #1d6fe0;
  --plastic: #f5c400;
  --glass: #14a44d;
  --metal: #8a949c;
  --organic: #8a5a2b;
  --hazard: #d9262c;
  --medical: #e11d74;
  --zero-waste: #009688;
}

* {
  box-sizing: border-box;
  margin: 0;
  border-radius: 0;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  min-height: 100vh;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

h1, h2, h3, .ed {
  font-family: 'Playfair Display', Georgia, serif;
}


/* GERİ DÖNÜŞÜM KUTULARI */

.bins {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 8px;
  padding: 0 24px;
  background: var(--surface);
  overflow: hidden;
}

.bins svg {
  width: clamp(22px, 4.6vw, 70px);
  max-width: calc((100% - 56px) / 8);
  min-width: 0;
  height: auto;
  display: block;
  flex-shrink: 1;
}

.bins.bot {
  border-top: 4px solid var(--accent);
  padding-top: 10px;
}


/* ANA SAYFA VE MENÜ */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 2px solid var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.logo b {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  clip-path: polygon(
    0 0,
    70% 0,
    100% 30%,
    100% 100%,
    0 100%
  );
}

.logo span {
  font-size: 26px;
  letter-spacing: .18em;
  font-weight: 900;
}

.menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.menu a {
  font: 800 13px 'Plus Jakarta Sans';
  letter-spacing: .14em;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a.on {
  border-color: var(--accent);
  color: var(--accent);
}

main {
  padding: 36px 0 48px;
}


/* HABER KARTLARI */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.card {
  background: var(--surface);
  border-left: 8px solid var(--c);
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;

  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );

  transition: transform .2s, background .2s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translate(-3px, -3px);
  background: #e1ebe6;
}

.tag {
  align-self: flex-start;
  background: var(--c);
  color: #000;
  font: 800 11px 'Plus Jakarta Sans';
  letter-spacing: .12em;
  padding: 5px 10px;
  text-transform: uppercase;

  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - 8px) 100%,
    0 100%
  );
}

.card h3 {
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}

.card p {
  font-size: 14px;
  opacity: .8;
  line-height: 1.55;
}

.more {
  margin-top: auto;
  align-self: flex-start;
  border-bottom: 3px solid var(--c);
  padding-bottom: 2px;
  font: 800 12px 'Plus Jakarta Sans';
  letter-spacing: .12em;
  color: var(--ink);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}


/* DİNAMİK MANŞET TASARIMI */

.hero {
  grid-column: 1/-1;
  border-left: 14px solid var(--c);
  padding: 40px;
  justify-content: flex-start;

  background: linear-gradient(
    135deg,
    var(--surface) 55%,
    color-mix(in srgb, var(--c) 30%, var(--surface))
  );
}

.hero-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin: 16px 0;
  display: block;
}

.hero h3 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
}

.hero p {
  font-size: 17px;
  max-width: 680px;
}


/* KAYDIRILABİLİR HABER ALANI */

.slider-title {
  margin: 60px 0 20px;
  font-size: 28px;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

.news-slider {
  display: flex;
  overflow-x: auto;
  gap: 22px;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.news-slider .card {
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.news-slider::-webkit-scrollbar {
  height: 10px;
}

.news-slider::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 5px;
}

.news-slider::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}


/* RENK AYARLARI PANELİ */

#tg {
  position: fixed;
  right: 26px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  font: 800 12px 'Plus Jakarta Sans';
  letter-spacing: .1em;
  cursor: pointer;

  clip-path: polygon(
    0 0,
    100% 0,
    100% 70%,
    85% 100%,
    0 100%
  );
}

#pn {
  position: fixed;
  right: 26px;
  bottom: calc(134px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  background: #fffffff2;
  backdrop-filter: blur(8px);
  border: 2px solid var(--accent);
  padding: 16px;
  width: 250px;
  display: none;
  max-height: 60vh;
  overflow: auto;
}

#pn.open {
  display: block;
}

#pn label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
}

#pn input {
  width: 46px;
  height: 28px;
  border: 2px solid #fff3;
  background: none;
  padding: 0;
  cursor: pointer;
}

#pn button {
  margin-top: 10px;
  width: 100%;
  background: none;
  border: 2px solid var(--accent);
  color: var(--text);
  padding: 8px;
  font: 800 11px 'Plus Jakarta Sans';
  cursor: pointer;
}


/* HABER DETAY SAYFASI */

.art {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border-top: 10px solid var(--c, var(--plastic));
  padding: clamp(22px, 5vw, 56px);

  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    0 100%
  );
}

.art-img {
  width: 100%;
  height: clamp(250px, 40vh, 450px);
  object-fit: cover;
  margin-bottom: 24px;
  display: block;
}

.art h1 {
  font-size: clamp(30px, 5vw, 48px);
  color: var(--ink);
  line-height: 1.15;
  margin: 16px 0;
}

.art .lead {
  font-size: 19px;
  opacity: .9;
  border-left: 5px solid var(--c, var(--plastic));
  padding-left: 16px;
  margin-bottom: 24px;
  line-height: 1.55;
}

.art p {
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
  border-style: none;
  border-color: rgb(255, 215, 0);
}

.back {
  display: inline-block;
  background: none;
  border: 2px solid var(--accent);
  color: var(--text);
  font: 800 12px 'Plus Jakarta Sans';
  letter-spacing: .12em;
  padding: 10px 16px;
  cursor: pointer;
  margin-bottom: 22px;
  text-decoration: none;
  transition: all .2s;
}

.back:hover {
  background: var(--accent);
  color: #fff;
}


/* HABER METİNLERİ VE GÖRSELLER */

.site-message {
  padding: 25px;
  background: var(--surface);
  line-height: 1.6;
}

.article-body {
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  cursor: zoom-in;
}

.article-body h2,
.article-body h3 {
  margin: 25px 0 12px;
}

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

.art figure {
  margin: 20px 0 28px;
}

.art figure img {
  max-width: 100%;
  height: auto;
}


/* FOTOĞRAF ALTYAZILARI */

.art .news-figure {
  margin: 20px 0 28px;
}

.news-figure .art-img {
  margin-bottom: 0;
  cursor: zoom-in;
}

.photo-caption {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: #68756f;
  line-height: 1.5;
  padding: 7px 0;
  text-align: left;
  overflow-wrap: anywhere;
}


/* FOTOĞRAF GALERİSİ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 15px 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
}

.art .gallery-figure {
  margin: 0;
  min-width: 0;
}

.art .gallery-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-figure .photo-caption {
  font-size: 11px;
}


/* FOOTER */

footer {
  background: var(--surface);
  border-top: 4px solid var(--accent);
  margin-top: 20px;
  padding: 36px 0 28px;
}

.fg {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

footer h5 {
  font: 800 12px 'Plus Jakarta Sans';
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 12px;
}

footer p,
footer li {
  font-size: 14px;
  line-height: 1.8;
  opacity: .85;
}

footer ul {
  list-style: none;
  padding: 0;
}

.sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--c);
  margin-right: 8px;
}


/* INSTAGRAM VE YOUTUBE BAĞLANTILARI */

.ig {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 3px solid var(--ink);
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
  font: 800 14px 'Plus Jakarta Sans';
  transition: background .2s;
}

.ig + .ig {
  margin-top: 12px;
}

.ig:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ig svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.ig small {
  display: block;
  font: 400 12px 'Plus Jakarta Sans';
  opacity: .75;
  margin-top: 2px;
}

.cp {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #fff2;
  font-size: 12px;
  opacity: .6;
}


/* F HABER LOGOSU */

.site-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  display: block;
}


/* VİDEO OYNATICI TASARIMI */

.news-video {
  width: 100%;
  margin: 25px 0 30px;
  overflow: hidden;
  background: #000;
  border-left: 10px solid var(--c, var(--accent));
  box-sizing: border-box;
}

.news-video iframe,
.news-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #000;
}

.news-video video {
  object-fit: contain;
}


/* ========================================= */
/* MOBİL CİHAZ UYUMLULUĞU                    */
/* ========================================= */

@media (max-width: 640px) {

  /* GENEL SAYFA BOYUTLANDIRMA */

  .wrap {
    padding: 0 14px;
  }

  main {
    padding: 18px 0 25px;
  }


  /* F HABER LOGOSU */

  .site-logo {
    width: 50px;
    height: 50px;
  }


  /* SEKİZ GERİ DÖNÜŞÜM KUTUSU */

  .bins {
    padding-left: 8px;
    padding-right: 8px;
    gap: 4px;
  }

  .bins svg {
    width: 11%;
    max-width: calc((100% - 28px) / 8);
    min-width: 0;
    height: auto;
  }


  /* NORMAL HABER KARTLARI */

  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .card {
    padding: 14px;
    gap: 8px;
    border-left-width: 5px;
  }

  .card h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .card-img {
    height: 145px;
    margin-bottom: 5px;
  }


  /* MOBİL MANŞET HABERİ */

  .hero {
    padding: 16px;
    border-left-width: 7px;
  }

  .hero-img {
    width: 100%;
    height: 190px;
    margin: 8px 0;
    object-fit: cover;
  }

  .hero h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.5;
  }


  /* KATEGORİ ETİKETLERİ */

  .tag {
    font-size: 9px;
    padding: 4px 8px;
    letter-spacing: .06em;
  }

  .more {
    font-size: 10px;
  }


  /* MOBİL HABER KAYDIRMA ALANI */

  .slider-title {
    font-size: 22px;
    margin: 28px 0 14px;
    padding-bottom: 8px;
  }

  .news-slider {
    gap: 12px;
    padding-bottom: 14px;
  }

  .news-slider .card {
    min-width: min(240px, 85%);
    max-width: min(240px, 85%);
  }

  .news-slider .card-img {
    height: 130px;
  }


  /* MOBİL HABER DETAY SAYFASI */

  .art {
    padding: 16px;
    border-top-width: 6px;
  }

  .art h1 {
    font-size: 26px;
    line-height: 1.2;
    margin: 12px 0;
  }

  .art p {
    font-size: 14px;
    line-height: 1.7;
  }

  .art .lead {
    font-size: 15px;
    padding-left: 10px;
    margin-bottom: 16px;
  }

  .art-img {
    height: auto;
    max-height: 280px;
    margin-bottom: 15px;
  }


  /* MOBİL FOTOĞRAF ALTYAZILARI */

  .art .news-figure {
    margin: 15px 0 20px;
  }

  .news-figure .art-img {
    margin-bottom: 0;
  }

  .photo-caption {
    font-size: 11px;
    padding: 5px 0;
    line-height: 1.5;
  }

  .gallery-figure .photo-caption {
    font-size: 10px;
  }


  /* MOBİL FOTOĞRAF GALERİSİ */

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }


  /* MOBİL VİDEO OYNATICI */

  .news-video {
    margin: 15px 0 20px;
    border-left-width: 5px;
  }

  .news-video iframe,
  .news-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

}
/* HABER METNİNDE ALTYAZILI FOTOĞRAFLAR */
.art .article-body .inline-photo {
  margin: 24px 0;
  width: 100%;
}
.article-body .inline-photo img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  cursor: zoom-in;
}
.photo-caption:empty { display: none; }
@media (max-width: 640px) {
  .art .article-body .inline-photo { margin: 16px 0; }
}
/* NORMAL FOTOĞRAFLARIN ALTYAZILARI */

.art .article-body .inline-photo {
  margin: 20px 0 25px;
  width: 100%;
}

.article-body .inline-photo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-body .inline-photo .photo-caption {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  color: #68756f;
  text-align: left;
  line-height: 1.5;
  padding: 6px 0;
  margin: 0;
}

@media (max-width: 640px) {
  .article-body .inline-photo .photo-caption {
    font-size: 11px;
  }
}
