/**
 * YONETIM KADROSU MODULU
 * 
 * Bu modül şirket yönetim kadrosunu göstermek için tasarlanmış
 * tamamen bağımsız ve yeniden kullanılabilir bir CSS dosyasıdır.
 * 
 * Özellikler:
 * - Modüler yapı (farklı projelerde kullanılabilir)
 * - Responsive tasarım
 * - Hover efektleri (fotoğraf zoom, isim rengi değişimi)
 * - Esnek grid sistem (ilk satır 2 kart, diğerleri 3 kart)
 * - İlk satır içeride konumlandırılmış (max-width: 70%)
 * - Kartlar arka plan rengi yok (transparent)
 * - Gölge efektleri yok
 * - LinkedIn logosu arka planlı görsel olarak kullanılır
 * - Footer'dan sonra çizgi (15px boşluk ile)
 * 
 * Kullanım: HTML'e yonetim-kadrosu.css dosyasını ekleyin
 * 
 * Son Güncelleme: Aralık 2025
 * Versiyon: 1.1.0
 */

/* =====================================
   CSS VARIABLES (Özelleştirilebilir)
   ===================================== */
.yonetim-kadrosu-section {
  --yk-primary-color: #FAC25A;
  --yk-text-dark: #2c3339;
  --yk-text-light: #7B868C;
  --yk-bg-color: #F8F8F8;
  --yk-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --yk-transition-fast: all 0.3s ease;
  
  /* Transform değişkenleri (Tailwind benzeri sistem) */
  --yk-translate-x: 0;
  --yk-translate-y: 0;
  --yk-rotate: 0;
  --yk-scale-x: 1;
  --yk-scale-y: 1;
}

/* =====================================
   SECTION BASE
   ===================================== */
.yonetim-kadrosu-section {
  position: relative;
  width: 100%;
  padding: 80px 0 100px;
  background-color: var(--yk-bg-color);
  overflow: hidden;
}

.yonetim-kadrosu-wrapper {
  position: relative;
  width: 100%;
  z-index: 2;
}

/* =====================================
   BACKGROUND LOGO (Watermark) - Container dışında
   ===================================== */
.yonetim-kadrosu-bg-logo {
  position: absolute;
  top: 100px; /* Top'tan boşluk */
  left: 0; /* Section'un soluna yaslı */
  width: 670px;
  height: auto;
  max-width: 60%;
  opacity: 1;
  z-index: 0; /* Kartlara göre düşük z-index (wrapper z-index: 2) */
  pointer-events: none;
}

.yonetim-kadrosu-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center; /* Sola hizalı */
}

/* =====================================
   HEADER
   ===================================== */
.yonetim-kadrosu-header {
  text-align: center;
  margin-bottom: 60px;
}

.yonetim-kadrosu-title {
  font-size: 48px;
  font-weight: 600;
  color: var(--yk-text-dark);
  margin-bottom: 15px;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.yonetim-kadrosu-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--yk-text-light);
  margin: 0;
  line-height: 1.6;
}

/* =====================================
   ROW GRID SYSTEM
   ===================================== */
.yonetim-kadrosu-row {
  display: grid;
  gap: 50px; /* Kartlar arası boşluk azaltıldı */
  margin-bottom: 40px;
  width: 100%;
}

/* İlk satır: 3 kart yan yana (tam genişlik) */
.yonetim-kadrosu-row-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 80%; /* Tam genişlik */
  margin-left: auto;
  margin-right: auto;
}

/* Diğer satırlar: 4 kart yan yana (tam genişlik) */
.yonetim-kadrosu-row-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 100%; /* Tam genişlik */
  margin-left: 0;
  margin-right: 0;
}

/* ESKİ YAPILANDIRMA (İlk satır 2, diğer satırlar 3 kart) - Geri dönüş için */
/* 
.yonetim-kadrosu-row-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 55%;
  margin-left: auto;
  margin-right: auto;
}

.yonetim-kadrosu-row-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}
*/

/* Son satırın margin'ini kaldır */
.yonetim-kadrosu-row:last-child {
  margin-bottom: 0;
}

/* =====================================
   CARD STRUCTURE
   ===================================== */
.yonetim-kadrosu-card {
  position: relative;
  width: 100%;
  transition: var(--yk-transition);
}

/* Kart içeriği - Arka plan rengi yok, gölge yok */
.yonetim-kadrosu-card-inner {
  display: flex;
  flex-direction: column;
  background-color: transparent; /* Arka plan rengi yok */
  border-radius: 0;
  overflow: hidden;
  transition: var(--yk-transition);
  height: 100%;
}

/* =====================================
   IMAGE WRAPPER (Taşma önleme + Zoom)
   ===================================== */
.yonetim-kadrosu-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 115%; /* Biraz daha dikdörtgen form (kare yerine) */
  overflow: hidden; /* Görsel taşmasını önler */
  background-color: #E8E8E8;
}

/* Köşe Efekti (Section arka plan rengi ile aynı) */
.yonetim-kadrosu-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  height: 54%;
  width: 26%;
  transform: translateX(50%) translateY(50%) rotate(30deg);
  background-color: var(--yk-bg-color);
}

.yonetim-kadrosu-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform; /* Performans optimizasyonu */
  /* Tailwind benzeri transform sistemi */
  transform: translate(var(--yk-translate-x), var(--yk-translate-y)) 
             rotate(var(--yk-rotate)) 
             scaleX(var(--yk-scale-x)) 
             scaleY(var(--yk-scale-y));
}

/* Hover: Fotoğraf yakınlaşması (resim alanından TAŞMADAN) */
.yonetim-kadrosu-card:hover .yonetim-kadrosu-image {
  --yk-scale-x: 1.15;
  --yk-scale-y: 1.15;
}

/* =====================================
   CONTENT AREA
   ===================================== */
.yonetim-kadrosu-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 25px 0px;
  flex: 1;
}

/* =====================================
   NAME
   ===================================== */
.yonetim-kadrosu-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--yk-text-dark);
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.3;
  transition: var(--yk-transition-fast);
  text-transform: uppercase;
}

/* Hover: İsim rengi değişimi */
.yonetim-kadrosu-card:hover .yonetim-kadrosu-name {
  color: var(--yk-primary-color);
}

/* =====================================
   FOOTER (Pozisyon + LinkedIn)
   ===================================== */
.yonetim-kadrosu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 0;
  margin-bottom: 20px;
  position: relative;
  min-height: 42px;
}

/* Çizgi footer'dan sonra (aşağıda) - Tüm kartlarda aynı görünüm */
.yonetim-kadrosu-footer::after {
  content: '';
  position: absolute;
  bottom: -20px; /* Footer ile çizgi arasında 20px boşluk */
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background-color: #35363a;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.yonetim-kadrosu-position {
  font-size: 15px;
  font-weight: 400;
  color: var(--yk-text-light);
  line-height: 1.4;
  flex: 1;
}

/* =====================================
   LINKEDIN BUTTON (Arka Planlı Logo)
   ===================================== */
.yonetim-kadrosu-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 0;
  background-color: transparent;
  transition: var(--yk-transition-fast);
  flex-shrink: 0;
  text-decoration: none;
  padding: 0;
}

.yonetim-kadrosu-linkedin:hover {
  opacity: 0.8;
  /* Scale efekti kaldırıldı */
}

.yonetim-kadrosu-linkedin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .yonetim-kadrosu-section {
    padding: 60px 0 80px;
  }

  .yonetim-kadrosu-header {
    margin-bottom: 50px;
  }

  .yonetim-kadrosu-title {
    font-size: 40px;
  }

  .yonetim-kadrosu-subtitle {
    font-size: 16px;
  }

  /* Tablet'te tüm satırlar 2 sütun */
  .yonetim-kadrosu-row-3,
  .yonetim-kadrosu-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tablet'te tüm satırlar normal genişlikte */
  .yonetim-kadrosu-row-3,
  .yonetim-kadrosu-row-4 {
    max-width: 100%;
  }

  /* Tablet'te wrapper'ı grid container yap - tüm kartlar düzgün yerleşsin */
  .yonetim-kadrosu-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; /* Tablet'te gap azaltıldı */
  }

  /* Tablet'te header'ı grid dışında tut */
  .yonetim-kadrosu-header {
    grid-column: 1 / -1; /* Tüm sütunları kapla */
    margin-bottom: 50px;
  }

  /* Tablet'te row'ları grid item yapmak yerine içeriğini doğrudan grid'e yerleştir */
  .yonetim-kadrosu-row {
    display: contents; /* Row'u kaldır, içeriği doğrudan wrapper grid'ine yerleştir */
    margin-bottom: 0;
  }

  .yonetim-kadrosu-row {
    gap: 60px;
    margin-bottom: 30px;
  }

  .yonetim-kadrosu-bg-logo {
    display: none; /* Tablet'te logo gizli - sadece masaüstünde gözüksün */
  }

  .yonetim-kadrosu-name {
    font-size: 20px;
  }

  .yonetim-kadrosu-position {
    font-size: 14px;
  }
}

/* Mobile (768px ve altı) */
@media (max-width: 768px) {
  .yonetim-kadrosu-section {
    padding: 40px 0 60px;
  }

  .yonetim-kadrosu-header {
    margin-bottom: 40px;
  }

  .yonetim-kadrosu-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .yonetim-kadrosu-subtitle {
    font-size: 15px;
  }

  /* Mobile'de wrapper'ı tek sütun grid yap */
  .yonetim-kadrosu-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Mobile'de tek sütun */
    gap: 25px;
  }

  /* Mobile'de header'ı grid dışında tut */
  .yonetim-kadrosu-header {
    grid-column: 1 / -1;
    margin-bottom: 40px;
  }

  /* Mobile'de tüm kartlar tek sütun */
  .yonetim-kadrosu-row-3,
  .yonetim-kadrosu-row-4 {
    grid-template-columns: 1fr;
  }

  /* Mobile'de row'ları grid item yapmak yerine içeriğini doğrudan grid'e yerleştir */
  .yonetim-kadrosu-row {
    display: contents; /* Row'u kaldır, içeriği doğrudan wrapper grid'ine yerleştir */
    margin-bottom: 0;
  }

  .yonetim-kadrosu-bg-logo {
    display: none; /* Mobile'de logo gizli - sadece masaüstünde gözüksün */
  }

  .yonetim-kadrosu-name {
    font-size: 19px;
  }

  .yonetim-kadrosu-position {
    font-size: 13px;
  }

  .yonetim-kadrosu-content {
    padding: 20px 0px;
    gap: 10px;
  }

  .yonetim-kadrosu-linkedin {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  /* Mobile'de hover efektlerini azalt (performans) */
  .yonetim-kadrosu-card:hover .yonetim-kadrosu-image {
    transform: scale(1.1);
  }
}

/* Çok küçük ekranlar (480px altı) */
@media (max-width: 480px) {
  .yonetim-kadrosu-section {
    padding: 30px 0 50px;
  }

  .yonetim-kadrosu-title {
    font-size: 28px;
  }

  .yonetim-kadrosu-subtitle {
    font-size: 14px;
  }

  .yonetim-kadrosu-name {
    font-size: 18px;
  }

  .yonetim-kadrosu-position {
    font-size: 12px;
  }

  .yonetim-kadrosu-footer {
    gap: 10px;
  }

  .yonetim-kadrosu-linkedin {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
}

/* =====================================
   PRINT STYLES
   ===================================== */
@media print {
  .yonetim-kadrosu-section {
    padding: 20px 0;
  }

  .yonetim-kadrosu-card-inner {
    border: 1px solid #ddd;
  }

  .yonetim-kadrosu-bg-logo {
    display: none;
  }
}

/* =====================================
   ACCESSIBILITY
   ===================================== */

/* Klavye navigasyonu için focus stilleri */
.yonetim-kadrosu-linkedin:focus {
  outline: 3px solid var(--yk-primary-color);
  outline-offset: 2px;
}

/* Yüksek kontrast modu desteği */
@media (prefers-contrast: high) {
  .yonetim-kadrosu-card-inner {
    border: 2px solid var(--yk-text-dark);
  }

  .yonetim-kadrosu-name {
    font-weight: 700;
  }
}

/* =====================================
   POPUP STYLES (Special-Form Yapısı)
   ===================================== */

/* Popup Overlay */
.yonetim-kadrosu-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  animation: yonetim-kadrosu-fadeIn 0.15s ease backwards;
}

.yonetim-kadrosu-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

@keyframes yonetim-kadrosu-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Popup Modal Container */
.yonetim-kadrosu-popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  position: relative;
  isolation: isolate;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.yonetim-kadrosu-popup-overlay.active .yonetim-kadrosu-popup-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile'de active state transform'u override etme */
@media (max-width: 768px) {
  .yonetim-kadrosu-popup-overlay.active .yonetim-kadrosu-popup-modal {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Popup Inner Container */
.yonetim-kadrosu-popup-inner {
  padding: 50px 50px 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.yonetim-kadrosu-popup-inner::-webkit-scrollbar {
  width: 6px;
}

.yonetim-kadrosu-popup-inner::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.yonetim-kadrosu-popup-inner::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.yonetim-kadrosu-popup-inner::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}

/* Close Button */
.yonetim-kadrosu-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transition: background 0.35s ease, transform 0.35s ease;
  padding: 0;
  color: #333333;
}

.yonetim-kadrosu-popup-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.yonetim-kadrosu-popup-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  transition: transform 0.4s ease;
}

.yonetim-kadrosu-popup-close:hover svg {
  transform: rotate(-180deg);
}

/* Quote Section */
.yonetim-kadrosu-popup-quote-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.yonetim-kadrosu-popup-quote-icon {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 0 30px 0;
  padding: 0;
}

.yonetim-kadrosu-popup-quote-text {
  color: #333333;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  padding-left: 10px;
  margin-top: -10px;
}

/* Content Section */
.yonetim-kadrosu-popup-content-section {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: start;
}

/* Left Side - Image */
.yonetim-kadrosu-popup-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.yonetim-kadrosu-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Side - Details */
.yonetim-kadrosu-popup-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Popup Details */
.yonetim-kadrosu-popup-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yonetim-kadrosu-popup-details p {
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

/* Popup Footer */
.yonetim-kadrosu-popup-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.yonetim-kadrosu-popup-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* Popup Position */
.yonetim-kadrosu-popup-position {
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

/* Popup Name */
.yonetim-kadrosu-popup-name {
  color: #FAC25A;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* Popup LinkedIn */
.yonetim-kadrosu-popup-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
  margin-top: 0;
}

.yonetim-kadrosu-popup-linkedin:hover {
  opacity: 0.7;
}

.yonetim-kadrosu-popup-linkedin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .yonetim-kadrosu-popup-modal {
    width: 95%;
    max-height: 90vh;
  }

  .yonetim-kadrosu-popup-inner {
    padding: 50px 40px 40px 40px;
    gap: 30px;
  }

  .yonetim-kadrosu-popup-content-section {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }

  .yonetim-kadrosu-popup-quote-icon {
    width: 45px;
    margin-bottom: 25px;
  }

  .yonetim-kadrosu-popup-quote-text {
    font-size: 16px;
    margin-top: -8px;
  }

  .yonetim-kadrosu-popup-name {
    font-size: 24px;
  }

  .yonetim-kadrosu-popup-details p {
    font-size: 15px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .yonetim-kadrosu-popup-modal {
    width: 100%;
    max-height: 75vh;
    border-radius: 0;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
  }

  .yonetim-kadrosu-popup-inner {
    padding: 40px 20px 20px 20px;
    gap: 25px;
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .yonetim-kadrosu-popup-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .yonetim-kadrosu-popup-content-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .yonetim-kadrosu-popup-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .yonetim-kadrosu-popup-quote-icon {
    width: 35px;
    margin-bottom: 20px;
  }

  .yonetim-kadrosu-popup-quote-text {
    font-size: 15px;
    padding-left: 5px;
    margin-top: -8px;
  }

  .yonetim-kadrosu-popup-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .yonetim-kadrosu-popup-footer-left {
    flex: 1;
  }

  .yonetim-kadrosu-popup-linkedin {
    align-self: center;
    flex-shrink: 0;
  }

  .yonetim-kadrosu-popup-details {
    gap: 15px;
  }

  .yonetim-kadrosu-popup-details p {
    font-size: 14px;
    line-height: 1.6;
  }

  .yonetim-kadrosu-popup-name {
    font-size: 22px;
  }

  .yonetim-kadrosu-popup-position {
    font-size: 13px;
  }

  .yonetim-kadrosu-popup-linkedin {
    width: 30px;
    height: 30px;
  }
}

/* Kartlara tıklanabilirlik ekle */
.yonetim-kadrosu-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.yonetim-kadrosu-card:hover {
  transform: translateY(-2px);
}

.yonetim-kadrosu-linkedin {
  pointer-events: auto; /* LinkedIn linki tıklanabilir kalmalı */
}

.yonetim-kadrosu-card .yonetim-kadrosu-linkedin:hover {
  transform: none; /* LinkedIn hover'da kart hover'ını override etmesin */
}


