/* ============================================================
   Emek Gençliği — Placeholder CSS
   Yeni tasarım yapılana kadar temel görünümü sağlar.
   ============================================================ */

@font-face {
  font-family: 'Futura Bulk';
  src: url('../fonts/futura-pt-extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --acik-gri: #f5f5f5;
  --orta-gri: #999;
  --koyu: #111;
  --kirmizi: #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  background: #f8f8f8;
  color: #1a1a1a;
  line-height: 1.6;
}

a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ─── HEADER ─────────────────────────────────── */
#top-of-page {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: transform 0.3s ease;
  border-bottom: 1px solid #e8e8e8;
}
#top-of-page.nav-gizli { transform: translateY(-100%); }

#top-of-page nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo img {
  display: inline-block;
  height: 2.5rem;
  width: auto;
}
.logo-yazi {
  font-family: 'Futura Bulk', 'Futura', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  line-height: 1;
  margin-top: 0.9rem;
}

/* Nav linkleri */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
}
.nav-links > li > span,
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #444;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links > li > span:hover,
.nav-links > li > a:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.06);
  text-decoration: none;
}
.nav-inline-link { color: inherit; }
.nav-inline-link:hover { text-decoration: none; color: inherit; }

/* Ok ikonu */
.ok::after { content: '▾'; font-size: 0.65rem; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.dropdown > ul {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  min-width: 160px;
  width: max-content;
  padding: 0.4rem 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
}
.dropdown:hover > ul { display: block; }

/* Üst menü okları da "Konferans Broşürleri" oku gibi dönsün.
   Menü masaüstünde hover ile açılıyor; .acik ise tıklamayla gelen durum —
   ok, gerçekten açık olan her iki halde de dönmeli.
   `display: inline-block` şart: transform satır içi elemanlara uygulanmaz.
   .dropdown-group-title'da ok bir flex öğesi olduğu için orada zaten
   bloklaşıyordu, burada elle vermek gerekiyor. */
.dropdown > span > .ok {
  display: inline-block;
  transition: transform 0.2s;
}
.dropdown:hover > span > .ok,
.dropdown.acik > span > .ok { transform: rotate(180deg); }
.dropdown > ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #444;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.dropdown > ul li a:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.05);
  text-decoration: none;
}

/* "Konferans Broşürleri" — tıklayınca açılan alt-dropdown başlığı */
.dropdown-group-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.5rem 1rem;
  margin: 0;
  color: #444;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.dropdown-group-title:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.05);
}
.dropdown-group-title .ok {
  margin-left: auto;
  transition: transform 0.2s;
}
.dropdown-group.acik .dropdown-group-title .ok { transform: rotate(180deg); }

/* Alt-dropdown içeriği — kapalı başlar, .acik ile açılır */
.dropdown-group > ul {
  display: none;
  margin: 0;
  padding: 0 0 0.25rem 0.6rem;
  list-style: none;
}
.dropdown-group.acik > ul { display: block; }

/* Bize Ulaş butonu */
.nav-iletisim-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #c0392b;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-iletisim-btn:hover {
  background: #a93226;
  text-decoration: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.acik .b1 { transform: translateY(7px) rotate(45deg); }
.menu-toggle.acik .b2 { opacity: 0; }
.menu-toggle.acik .b3 { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}
.nav-backdrop.aktif { display: block; }

/* ─── ANA İÇERİK ─────────────────────────────── */
main { max-width: 1200px; margin: 0 auto; padding: 0.75rem 2rem 0; }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: #111;
  color: #aaa;
  font-size: 0.875rem;
}

.footer-ust {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Marka */
.footer-marka {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo:hover { text-decoration: none; }

.footer-logo .logo-yazi {
  color: #fff;
  margin-top: 0.9rem;
}

.footer-aciklama {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.75;
  max-width: 280px;
}

/* Nav */
.footer-nav {
  display: flex;
  gap: 3rem;
}

.footer-nav-grup {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.footer-nav-grup h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-nav-grup ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-nav-grup ul a {
  color: #777;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-grup ul a:hover {
  color: #fff;
  text-decoration: none;
}

/* Sosyal */
.footer-sosyal h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.sosyal-linkler {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-bottom: 1.5rem;
}

.sosyal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #aaa;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}


.sosyal-btn:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-iletisim-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: #c0392b;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s;
}

.footer-iletisim-btn:hover {
  background: #a93226;
  color: #fff;
  text-decoration: none;
}

/* Alt bar */
.footer-alt {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #555;
}

/* Footer mobil */
@media (max-width: 768px) {
  .footer-ust {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 2.5rem;
  }

  .footer-marka {
    grid-column: 1 / -1;
  }

  .footer-aciklama {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-ust {
    grid-template-columns: 1fr;
  }

  /* Marka bloğu: logo + yazı + açıklama ortalı */
  .footer-marka {
    align-items: center;
  }

  .footer-aciklama {
    text-align: center;
    max-width: 100%;
  }

  /* Nav sütunları kendi içinde ortalı */
  .footer-nav-grup {
    align-items: center;
  }

  .footer-nav-grup ul {
    align-items: center;
  }

  .footer-sosyal {
    text-align: center;
  }

  .sosyal-linkler {
    justify-content: center;
  }

  /* inline-block kalır, üsteki .footer-sosyal { text-align:center } onu ortalar */
}

/* ─── GENEL ──────────────────────────────────── */
.card { background: #fff; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.flash { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-success { background: #d4edda; color: #155724; }
.flash-error   { background: #f8d7da; color: #721c24; }

/* ─── GÜNCEL KARTLAR (shared: homepage carousel + /guncel page) ─── */

.guncel-kart {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guncel-kart:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}

.guncel-kart__gorsel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  flex-shrink: 0;
}

.guncel-kart__gorsel img,
.guncel-kart__gorsel svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.guncel-kart:hover .guncel-kart__gorsel img,
.guncel-kart:hover .guncel-kart__gorsel svg {
  transform: scale(1.04);
}

.guncel-kart__icerik {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  gap: 0.5rem;
}

.guncel-kart__onbaslik {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--kirmizi, #c0392b);
  margin: 0 0 0.2rem;
}

.guncel-kart__baslik {
  font-size: 0.97rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guncel-kart__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #888;
}

.guncel-kart__meta-ayirici { color: #ccc; }
.guncel-kart__zaman { color: #aaa; }
.guncel-kart__tarih { color: #888; }

.pdf-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #c0392b;
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.guncel-kart__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
}

/* NOTE: video cards intentionally have NO extra hover treatment — they use the
   same subtle lift + image scale as açıklama cards (.guncel-kart:hover). The
   play overlay stays a neutral scrim on hover. */

.guncel-kart__play svg {
  fill: #fff;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.guncel-kart__sure {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.guncel-kart__ozet {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  /* flex-basis:0 + min-height:0 → the excerpt contributes nothing to the
     card's intrinsic height. The card's height is set by the tallest
     structural part of the row (image + title + meta); the excerpt then
     grows to fill whatever space is left, truncating with a soft fade. */
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* ─── LİSTİNG (bültenler, açıklamalar, vb.) ─── */
.listing-container {
  padding: 3rem 0 5rem;
}

.listing-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ebebeb;
}

.listing-baslik {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.listing-baslik::after {
  display: none;
}

.listing-aciklama {
  color: var(--orta-gri);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* Grid */
.kart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Kart */
.kart {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kart:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  text-decoration: none;
  color: inherit;
}

/* Kart görseli */
.kart-resim {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--acik-gri);
}

.kart-resim-a4 {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.kart-resim-tam {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Kart içerik */
.kart-icerik {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
}

.kart-tarih {
  font-size: 0.75rem;
  color: var(--orta-gri);
  font-weight: 500;
}

.kart-baslik {
  font-size: 0.97rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kart-ozet {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.25rem;
  flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .kart-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .kart-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── SCROLL PROGRESS & BACK TO TOP ──────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #c0392b;
  z-index: 999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s ease;
  display: none;
}

.makale-main ~ .scroll-progress,
body:has(.makale-main) .scroll-progress {
  display: block;
}

.basa-don {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.basa-don:hover {
  background: #a93226;
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
}

.basa-don.gorunur {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.basa-don svg {
  width: 18px;
  height: 18px;
}

/* ─── MOBİL ──────────────────────────────────── */
@media (max-width: 768px) {
  /* #top-of-page nav specificity ile eşleşmeli — yoksa 0 2rem kazanır */
  #top-of-page nav { padding: 0 1rem; justify-content: space-between; }

  /* Hide the desktop horizontal nav on mobile — overlay takes over */
  .nav-links { display: none; }

  .nav-iletisim-btn { display: none; }
  .menu-toggle { display: flex; }

  .basa-don {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .basa-don svg {
    width: 16px;
    height: 16px;
  }
}

/* ─── MOBİL MENÜ OVERLAY — footer tarzı koyu tema ─── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #111;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
}

@media (max-width: 768px) {
  .menu-overlay { display: block; }
}

/* Header: navbar'daki logo ile piksel-uyumlu (padding + yükseklik eşleşir) */
.menu-overlay-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 4rem;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.menu-overlay-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.menu-overlay-logo:hover { text-decoration: none; }

/* Navbar logo img ile aynı boyut */
.menu-overlay-logo img {
  height: 2.5rem;
  width: auto;
  display: inline-block;
}

/* Navbar .logo-yazi ile aynı font-size + margin-top */
.menu-overlay-logo-yazi {
  font-family: 'Futura Bulk', 'Futura', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  margin-top: 0.9rem;
}

.menu-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.menu-overlay-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* Nav içeriği — footer ile aynı padding genişliği */
.menu-overlay-nav {
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Güncel + Daha Fazla yan yana */
.menu-overlay-nav-linkler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.menu-overlay-nav-linkler .menu-overlay-grup-baslik,
.menu-overlay-nav-linkler .menu-overlay-sublink {
  text-align: center;
}

/* Bölüm grubu — footer .footer-nav-grup gibi */
.menu-overlay-grup {
  padding: 1.25rem 0;
}

/* Bizi Takip Et grubu */
.menu-overlay-grup--takip {
  padding: 1.25rem 0;
}

.menu-overlay-grup--takip .menu-overlay-grup-baslik {
  text-align: center;
}

/* Bölüm başlığı — footer h4 ile aynı */
.menu-overlay-grup-baslik {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}

/* Bölüm link listesi */
.menu-overlay-grup-linkler {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Linkler — footer ul a stili */
.menu-overlay-sublink {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.15s;
}

.menu-overlay-sublink:hover {
  color: #fff;
  text-decoration: none;
}

/* Sosyal ikonlar — ortalanmış */
.menu-overlay-sosyal {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: center;
}

/* CTA — ortalanmış */
.menu-overlay-cta {
  display: inline-block;
  align-self: center;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background: #c0392b;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s;
}

.menu-overlay-cta:hover {
  background: #a93226;
  color: #fff;
  text-decoration: none;
}
