/* ==========================================================================
   Dijital Baran — Kurumsal İletişim Sayfası (iletisim.css)
   Apple Editorial Light & 3B Kontür Mimarisi + Koyu Tema Desteği
   ========================================================================== */

.contact-page {
  background: var(--bg-canvas);
  color: var(--text-primary);
}

.contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

@media (max-width: 600px) {
  .contact-container {
    padding: 0 14px;
  }
}

/* Aktif Sekme Stili (Header Pill Nav) */
.header-nav-link.active {
  background: #FFFFFF;
  color: #0B192C;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 4px rgba(11, 25, 44, 0.09);
}

:root[data-theme="dark"] .header-nav-link.active {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: var(--glass-edge-strong);
  box-shadow: 0 2px 8px rgba(5, 14, 34, 0.35);
}

/* Mobil Menü Düğmesi & Çekmecesi (< 1024px) */
.mobile-menu-btn {
  display: inline-flex;
}

.mobile-menu-btn .menu-icon-close {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .menu-icon-close {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu-btn,
  .mobile-nav-drawer {
    display: none !important;
  }
}

.mobile-nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 14px;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 12px 24px -8px rgba(11, 25, 44, 0.12);
}

.mobile-nav-drawer[hidden] {
  display: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
}

/* Bölüm 1: Hero */
.contact-hero {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #D5DFEC;
  padding: 36px 0 32px;
}

:root[data-theme="dark"] .contact-hero {
  background: var(--surface-1);
  border-bottom-color: var(--border-subtle);
}

.contact-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}

.contact-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.contact-display-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.5vw + 0.65rem, 2.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: var(--text-primary);
}

.contact-hero-lead {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.contact-hero-lead strong {
  color: var(--text-primary);
  font-weight: 700;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Bölüm Ritmi: Beyaz / Apple Açık Gri */
.contact-section {
  width: 100%;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-section-gray {
  background: #F5F5F7;
}

.contact-section-white {
  background: #FFFFFF;
}

:root[data-theme="dark"] .contact-section-gray {
  background: var(--bg-canvas);
}

:root[data-theme="dark"] .contact-section-white {
  background: var(--surface-1);
}

@media (max-width: 600px) {
  .contact-hero {
    padding: 24px 0 22px;
  }
  .contact-section {
    padding: 28px 0;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.links-head {
  margin-top: 38px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.5vw + 0.7rem, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 66ch;
}

/* 6+6 Merkez İletişim + Harita Izgarası */
.contact-primary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .contact-primary-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
  }
  .contact-info-stack {
    grid-column: span 6 / span 6;
  }
  .contact-map-column {
    grid-column: span 6 / span 6;
  }
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Lekesiz 1.5px Kontürlü Kurumsal Kartlar */
.contact-card {
  --gx: 50%;
  --gy: 50%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, background 220ms ease;
}

.contact-card.surface-white {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FCFDFF 100%) padding-box,
    linear-gradient(180deg, #C3D0E0 0%, #AEBFD4 100%) border-box;
  box-shadow:
    inset 0 1px 0 0 #FFFFFF,
    0 0 0 3px rgba(15, 35, 66, 0.03),
    0 10px 26px -12px rgba(11, 25, 44, 0.09);
}

.contact-card.surface-tinted {
  background:
    linear-gradient(180deg, #F8FAFC 0%, #F2F6FB 100%) padding-box,
    linear-gradient(180deg, #C3D0E0 0%, #AEBFD4 100%) border-box;
  box-shadow:
    inset 0 1px 0 0 #FFFFFF,
    0 0 0 3px rgba(15, 35, 66, 0.025),
    0 8px 24px -12px rgba(11, 25, 44, 0.08);
}

.contact-card:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(320px circle at var(--gx) var(--gy), #FFFFFF 0%, #F7FAFF 62%, #FFFFFF 100%) padding-box,
    radial-gradient(300px circle at var(--gx) var(--gy), #0055B3 0%, #1D7BF6 40%, #F68B1E 76%, #B8C7DA 100%) border-box;
  box-shadow:
    inset 0 1px 0 0 #FFFFFF,
    0 16px 32px -14px rgba(11, 25, 44, 0.14);
}

:root[data-theme="dark"] .contact-card.surface-white,
:root[data-theme="dark"] .contact-card.surface-tinted {
  background:
    linear-gradient(180deg, #203764 0%, #1a2d57 100%) padding-box,
    linear-gradient(180deg, #3b5998 0%, #2c4b82 100%) border-box;
  box-shadow: 0 8px 24px rgba(5, 14, 34, 0.28);
}

:root[data-theme="dark"] .contact-card:hover {
  background:
    radial-gradient(320px circle at var(--gx) var(--gy), #26417a 0%, #203764 68%, #1a2d57 100%) padding-box,
    radial-gradient(300px circle at var(--gx) var(--gy), #60A5FA 0%, #1D7BF6 45%, #F68B1E 82%, #3b5998 100%) border-box;
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
  flex-shrink: 0;
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title, var(--text-primary));
  line-height: 1.25;
}

.contact-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-address-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.contact-address-text {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
  flex: 1 1 240px;
}

/* Telefon / E-posta Satır Listesi */
.contact-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.contact-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-item-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  overflow-wrap: break-word;
}

a.contact-item-value:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.contact-email-link {
  font-family: var(--font-main);
}

.contact-item-actions,
.team-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #0A70DC 0%, #0055B3 100%);
  border: 1px solid #004999;
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.action-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 85, 179, 0.32);
}

.copy-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.copy-chip-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.copy-chip-btn.copied {
  border-color: var(--status-ok);
  background: var(--status-ok-bg);
  color: var(--status-ok);
}

/* Google Haritalar (.contour-bezel) */
.contact-map-column {
  display: flex;
  flex-direction: column;
}

.contact-map-bezel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-map-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
}

.contact-map-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 440px;
  background: var(--surface-2);
}

.contact-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.contact-map-coords {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-map-place {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-map-gps {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.contact-map-btn {
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.8rem;
}

/* Yetkili Kartları (Simetrik 3 + 2 Ortalanmış Masaüstü, 2 Tablet, 1 Mobil) */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.team-card {
  flex: 1 1 280px;
  max-width: 100%;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .team-card {
    flex: 0 1 calc((100% - 16px) / 2);
  }
}

@media (min-width: 1024px) {
  .team-card {
    flex: 0 1 calc((100% - 32px) / 3);
  }
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0A70DC 0%, #0055B3 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.team-identity {
  min-width: 0;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title, var(--text-primary));
  line-height: 1.25;
}

.team-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.team-email {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-decoration: none;
  overflow-wrap: break-word;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}

.team-email:hover {
  text-decoration: underline;
}

/* Kurumsal Bağlantılar (3 Sütun Eşit Genişlik) */
.corp-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .corp-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.corp-link-card {
  gap: 6px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.corp-link-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-title, var(--text-primary));
}

.corp-link-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
}

.corp-link-arrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 6px;
}

/* Dinamik Kurum İçi Dahili Rehber (Yalnızca 200 OK sonrası DOM'a eklenir) */
.internal-dir-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.internal-dir-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}

.internal-dept-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.internal-dept-pill {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.internal-dept-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.internal-dept-pill.active {
  background: linear-gradient(180deg, #0A70DC 0%, #0055B3 100%);
  border-color: #004999;
  color: #FFFFFF;
}

.internal-search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}

.internal-search-input {
  width: 100%;
  min-height: 38px;
  padding: 0 36px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--text-primary);
  font-size: 0.84rem;
}

.internal-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.internal-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
}

.internal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.internal-table th {
  padding: 13px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.internal-table td {
  padding: 13px 16px;
  font-size: 0.86rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.internal-table tbody tr:last-child td {
  border-bottom: 0;
}

.internal-table tbody tr:hover td {
  background: var(--surface-2);
}

.internal-ext-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--accent-primary-bg);
  border: 1px solid var(--accent-primary-border);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.internal-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  .internal-table-wrap {
    display: none;
  }
  .internal-cards-mobile {
    display: flex;
  }
}

.internal-mobile-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.internal-mobile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.internal-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Footer */
.contact-footer {
  width: 100%;
  background: var(--surface-1);
  padding: 20px 0;
  margin-top: auto;
}

.contact-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.contact-footer-home {
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-footer-home:hover {
  text-decoration: underline;
}

/* Kopyalama Bildirimi (Toast) */
.copy-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 9999px;
  background: #0B192C;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(11, 25, 44, 0.25);
}

.copy-toast[hidden] {
  display: none;
}
