/* Trendmetrik ortak public site chrome — navbar + footer.
   homepage + blog + diğer public sayfalar aynı görünümü buradan alır.
   Renkler theme-variables.css tokenlarıyla (--color-primary vb.) hizalı.
   NOT: homepage kendi inline CSS'ini de taşıyor; bu dosya blog gibi
   public_base.html extend eden sayfalar için tek kaynak chrome sağlar. */

:root {
  --motiv-grey-400: #777E90;
  --motiv-grey-500: #7C7C8D;
  --motiv-grey-900: #1F2128;
}

/* ---------- NAVBAR ---------- */
.navbar-custom {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
  padding: 12px 0;
  transition: all 0.3s ease;
}
.navbar-custom.scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.navbar-brand-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary, #0175e4);
  transition: transform 0.2s ease;
}
.navbar-brand-custom:hover { transform: translateY(-1px); }
.navbar-brand-custom span {
  background: linear-gradient(135deg, var(--color-primary, #0175e4), var(--color-accent, #fd751f));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-custom .navbar-nav { align-items: center; gap: 6px; }
.navbar-custom .navbar-nav .nav-link {
  position: relative;
  font-weight: 600;
  color: #334155;
  padding: 8px 14px !important;
  transition: color 0.2s ease;
  white-space: nowrap;          /* çok kelimeli linkler 2 satıra kaymasın (header sıkışması fix) */
  display: inline-flex;
  align-items: center;
}
.navbar-custom .navbar-nav .nav-link:hover { color: var(--color-primary, #0175e4); }
.navbar-custom .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--color-primary, #0175e4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navbar-custom .navbar-nav .nav-link:hover::after { transform: scaleX(1); }

.btn-custom-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-primary, #0175e4) 0%, var(--color-primary-hover, #0163c2) 100%);
  color: #fff !important;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(1, 117, 228, 0.3);
  transition: all 0.2s ease;
}
.btn-custom-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(1, 117, 228, 0.4); color: #fff; }
.btn-custom-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: #fff;
  color: var(--color-primary, #0175e4) !important;
  font-weight: 600;
  padding: 9px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-custom-secondary:hover { border-color: var(--color-primary, #0175e4); background: #f8fafc; }

@media (min-width: 992px) and (max-width: 1500px) {
  .navbar-custom .container {
    max-width: min(100% - 24px, 1320px);
  }
  .navbar-custom .navbar-nav {
    gap: 2px;
  }
  .navbar-custom .navbar-nav .nav-link {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 14px;
  }
  .navbar-custom .navbar-nav .btn-custom-primary,
  .navbar-custom .navbar-nav .btn-custom-secondary {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ---------- Entegrasyonlar mega-menü (intg-) — homepage ile TEK KAYNAK ----------
   Daha önce bu kurallar yalnız homepage.html inline'ındaydı; public_base.html
   (blog vb.) sayfalarda eksikti → mega-panel gizlenemeyip navbar içine açık/inline
   patlıyordu. Buraya taşındı, tüm public sayfalar artık doğru açılır/kapanır. */
.intg-mega { position: static; }
.intg-trigger { cursor: pointer; }
.intg-trigger .intg-caret { margin-left: 4px; transition: transform 0.25s ease; }
.intg-mega:hover .intg-caret,
.intg-mega:focus-within .intg-caret,
.intg-mega.intg-open .intg-caret { transform: rotate(180deg); }
.intg-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(960px, calc(100vw - 32px));
  background: #ffffff; border: 1px solid var(--motiv-grey-100, #f1f5f9);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  padding: 22px 26px; z-index: 1100;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.intg-panel::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.intg-mega:hover .intg-panel,
.intg-mega:focus-within .intg-panel,
.intg-mega.intg-open .intg-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.intg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 28px; }
.intg-col-head {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #5f6165; padding: 0 0 8px 6px; margin-bottom: 4px;
  border-bottom: 1px solid var(--motiv-grey-100, #f1f5f9);
}
.intg-list { list-style: none; margin: 0; padding: 0; }
.intg-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px;
  text-decoration: none; color: #5f6165; font-size: 14px; font-weight: 500; line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.intg-item:hover, .intg-item:focus-visible {
  background: rgba(1, 117, 228, 0.08); color: var(--color-primary, #0175e4);
  transform: translateX(2px); outline: none;
}
.intg-item:focus-visible { box-shadow: 0 0 0 2px rgba(1, 117, 228, 0.35); }
.intg-logo {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--motiv-grey-100, #f1f5f9);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); overflow: hidden;
}
.intg-logo img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }
.intg-logo.intg-mono::before { content: attr(data-initial); font-size: 13px; font-weight: 700; color: var(--color-primary, #0175e4); }
.intg-logo.intg-mono { background: rgba(1, 117, 228, 0.10); border-color: rgba(1, 117, 228, 0.18); }

/* Mobil hamburger toggler */
.navbar-custom .navbar-toggler { border: 1px solid rgba(15, 23, 42, 0.12); padding: 6px 10px; border-radius: 10px; }
.navbar-custom .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(1, 117, 228, 0.15); outline: none; }

@media (max-width: 991.98px) {
  .intg-mega { width: 100%; }
  .intg-panel {
    position: static; transform: none; width: 100%;
    opacity: 1; visibility: hidden; pointer-events: none;
    box-shadow: none; border: none; border-radius: 12px;
    background: var(--motiv-grey-100, #f1f5f9); padding: 0 8px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, visibility 0.3s;
  }
  .intg-panel::before { display: none; }
  .intg-mega:hover .intg-panel,
  .intg-mega:focus-within .intg-panel { max-height: 0; visibility: hidden; pointer-events: none; }
  .intg-mega.intg-open .intg-panel { visibility: visible; pointer-events: auto; max-height: 1600px; padding: 12px 8px; }
  .intg-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .intg-col { padding: 6px 0; }
  .intg-col-head { padding-left: 10px; }
  .intg-item { font-size: 15px; padding: 10px; }
  /* mobil: nav dikey, butonlar tam genişlik */
  .navbar-custom .navbar-nav { padding: 16px 0; gap: 4px; align-items: stretch; }
  .navbar-custom .navbar-nav .nav-item { width: 100%; }
  .navbar-custom .navbar-nav .nav-link { width: 100%; }
  .navbar-custom .navbar-nav .btn-custom-primary,
  .navbar-custom .navbar-nav .btn-custom-secondary { width: 100%; justify-content: center; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .intg-panel, .intg-caret, .intg-item { transition: none; }
}

/* İçerik fixed navbar altında kalmasın */
body.has-public-navbar { padding-top: 78px; }

/* ---------- FOOTER ---------- */
.footer-custom {
  background: var(--motiv-grey-900, #1F2128);
  color: #cbd5e1;
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-custom h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-custom ul { list-style: none; padding: 0; margin: 0; }
.footer-custom ul li { margin-bottom: 10px; }
.footer-custom ul li a {
  color: var(--motiv-grey-400, #94a3b8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-custom ul li a:hover { color: var(--color-accent, #fd751f); }
.footer-legal-link {
  color: var(--motiv-grey-500, #7c7c8d);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-link:hover { color: var(--color-accent, #fd751f); }
.footer-custom .border-secondary { border-color: rgba(255,255,255,0.1) !important; }

/* === Integrations mega-dropdown (public_navbar) ===
   public_base sayfaları (ör. /supplier/apply) için port edildi. Kaynak: homepage.html
   inline (homepage standalone, bu dosyayı yüklemez → çakışma yok). Toggle JS:
   includes/public_navbar.html. Default KAPALI; desktop hover/focus, mobil .intg-open. */
.intg-mega { position: static; }
.intg-trigger .intg-caret { margin-left: 4px; transition: transform 0.25s ease; }
.intg-mega:hover .intg-caret,
.intg-mega:focus-within .intg-caret,
.intg-mega.intg-open .intg-caret { transform: rotate(180deg); }
.intg-panel {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(960px, calc(100vw - 32px));
    background: #ffffff; border: 1px solid var(--motiv-grey-100, #F5F5F5);
    border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.16);
    padding: 22px 26px; z-index: 1100;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.intg-panel::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.intg-mega:hover .intg-panel,
.intg-mega:focus-within .intg-panel,
.intg-mega.intg-open .intg-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.intg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 28px; }
.intg-col-head {
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--motiv-grey-700, #5F6165); padding: 0 0 8px 6px; margin-bottom: 4px;
    border-bottom: 1px solid var(--motiv-grey-100, #F5F5F5);
}
.intg-list { list-style: none; margin: 0; padding: 0; }
.intg-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px;
    text-decoration: none; color: var(--motiv-grey-700, #5F6165);
    font-size: 14px; font-weight: 500; line-height: 1.2;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.intg-item:hover, .intg-item:focus-visible {
    background: rgba(var(--color-primary-rgb, 1,117,228), 0.08);
    color: var(--color-primary, #0175e4); transform: translateX(2px); outline: none;
}
.intg-item:focus-visible { box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb, 1,117,228), 0.35); }
.intg-logo {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--motiv-grey-100, #F5F5F5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden;
}
.intg-logo img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }
.intg-logo.intg-mono::before { content: attr(data-initial); font-size: 13px; font-weight: 700; color: var(--color-primary, #0175e4); }
.intg-logo.intg-mono {
    background: rgba(var(--color-primary-rgb, 1,117,228), 0.10);
    border-color: rgba(var(--color-primary-rgb, 1,117,228), 0.18);
}
@media (max-width: 991.98px) {
    .intg-mega { width: 100%; }
    .intg-panel {
        position: static; transform: none; width: 100%;
        opacity: 1; visibility: hidden; pointer-events: none;
        box-shadow: none; border: none; border-radius: 12px;
        background: var(--motiv-grey-100, #F5F5F5); padding: 0 8px;
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, visibility 0.3s;
    }
    .intg-panel::before { display: none; }
    .intg-mega:hover .intg-panel,
    .intg-mega:focus-within .intg-panel { max-height: 0; visibility: hidden; pointer-events: none; }
    .intg-mega.intg-open .intg-panel {
        visibility: visible; pointer-events: auto; max-height: 1600px; padding: 12px 8px;
    }
    .intg-grid { grid-template-columns: 1fr; gap: 4px 0; }
    .intg-col { padding: 6px 0; }
    .intg-col-head { padding-left: 10px; }
    .intg-item { font-size: 15px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .intg-panel, .intg-caret, .intg-item { transition: none; }
}
/* === /Integrations mega-dropdown === */
