/* Ekibimiz Plugin CSS */

/* Ana Container */
.ekibimiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ekibimiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.ekibimiz-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Departman Başlıkları */
.ekibimiz-department {
    margin-bottom: 50px;
}

.department-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 3px solid #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid Yapısı */
.ekibimiz-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ekibimiz-row {
    display: flex;
    min-height: 80px;
}

.ekibimiz-row.row-even {
    background-color: #f5f5f5;
}

.ekibimiz-row.row-odd {
    background-color: #e8e8e8;
}

/* Tek bölmeli düzen (Kurucu Avukat ve Bilgi İşlem) */
.ekibimiz-row.single-column {
    justify-content: center;
}

.ekibimiz-row.single-column .ekibimiz-member {
    max-width: 400px;
    width: 100%;
    border-right: none;
}

/* Ekip Üyesi Hücreleri */
.ekibimiz-member {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 2px solid #ffffff;
    text-align: center;
    min-height: 80px;
}

.ekibimiz-member:last-child {
    border-right: none;
}

.ekibimiz-member:hover {
    background-color: #333333 !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ekibimiz-member.empty-cell {
    cursor: default;
    background-color: transparent !important;
}

.ekibimiz-member.empty-cell:hover {
    transform: none;
    box-shadow: none;
}

.ekibimiz-member.no-popup {
    cursor: default;
}

.ekibimiz-member.no-popup:hover {
    background-color: inherit !important;
    color: inherit;
    transform: none;
    box-shadow: none;
}

/* Üye Bilgileri */
.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.member-position {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popup Stilleri - STICKY HEADER ÜZERİNDE KALACAK */
.ekibimiz-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999999 !important; /* Çok yüksek z-index */
    display: none; /* Default olarak gizli */
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.8) !important; /* Direkt background */
}

/* Popup açık olduğunda */
.ekibimiz-popup.show {
    display: flex !important;
}

/* Popup kesinlikle gizli başlasın */
.ekibimiz-popup:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ekibimiz-popup-overlay {
    display: none !important; /* Overlay'ı gizle, popup'ın kendisinde background var */
}

.ekibimiz-popup-content {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
    width: min(640px, 75vw) !important; /* Sağa-sola genişletildi: 560px -> 640px */
    max-height: min(440px, 70vh) !important; /* Alta genişletildi: 420px -> 440px */
    overflow-y: auto !important;
    z-index: 999999999 !important; /* Maksimum z-index */
    border: 2px solid #333333 !important;
    margin: 0 !important;
    transform: translateZ(0) !important; /* Hardware acceleration */
    pointer-events: auto !important;
    flex-shrink: 0 !important;
}

.ekibimiz-popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #333333 !important;
    cursor: pointer !important;
    z-index: 999999999 !important; /* Maksimum z-index */
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    pointer-events: auto !important;
    border: 2px solid #333333 !important;
}

.ekibimiz-popup-close:hover {
    color: #000000;
    background-color: #e8e8e8;
    transform: scale(1.1);
}

/* Body scroll engelleme */
body.ekibimiz-popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Popup viewport kontrolleri */
.ekibimiz-popup {
    /* Tüm diğer elementlerin üzerinde olmasını garanti et */
    z-index: 2147483647 !important;
}

.ekibimiz-popup * {
    box-sizing: border-box !important;
}

/* Sticky header override */
.ekibimiz-popup-content {
    /* Sticky header'dan daha yüksek z-index */
    z-index: 2147483647 !important;
}

/* Viewport sınırları içinde kalma garantisi */
@media screen and (max-height: 600px) {
    .ekibimiz-popup-content {
        max-height: 85vh !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 800px) {
    .ekibimiz-popup-content {
        width: 90vw !important; /* Mobilde daha geniş */
        max-width: 90vw !important;
        margin: 0 !important;
    }
}

.ekibimiz-popup-body {
    padding: 20px; /* %30 küçültüldü: 30px -> 20px */
}

/* Popup İçeriği */
.popup-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #666666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.member-name-popup {
    font-size: 2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 10px 0;
    text-align: center;
}

.member-title-popup {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    background-color: #333333;
    padding: 8px 20px;
    border-radius: 20px;
    text-align: center;
    display: inline-block;
    margin: 0 auto 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* İletişim Bilgileri */
.member-contact {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 0;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    width: 25px;
}

.contact-text {
    font-size: 1rem;
    color: #444444;
}

/* Detay Bilgileri */
.member-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #666666;
    padding-bottom: 5px;
}

.member-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

.member-description p {
    margin-bottom: 15px;
}

.education-content,
.languages-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ekibimiz-container {
        padding: 15px;
    }
    
    .ekibimiz-title {
        font-size: 2rem;
    }
    
    .department-title {
        font-size: 1.5rem;
    }
    
    .ekibimiz-member {
        padding: 15px 10px;
        min-height: 70px;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .member-position {
        font-size: 0.8rem;
    }
    
    .ekibimiz-popup-content {
        width: 92vw !important; /* Mobilde daha geniş */
        max-width: 92vw !important;
        max-height: 82vh !important; /* Mobilde daha yüksek */
        margin: 0 !important;
    }
    
    .ekibimiz-popup {
        padding: 15px !important;
        align-items: center !important;
    }
    
    .ekibimiz-popup-body {
        padding: 20px;
    }
    
    .member-name-popup {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ekibimiz-row {
        flex-direction: column;
    }
    
    .ekibimiz-member {
        border-right: none;
        border-bottom: 2px solid #ffffff;
    }
    
    .ekibimiz-member:last-child {
        border-bottom: none;
    }
}

/* Animasyonlar */
.ekibimiz-popup.fade-in .ekibimiz-popup-content {
    animation: fadeIn 0.3s ease-out;
}

.ekibimiz-popup.slide-in .ekibimiz-popup-content {
    animation: slideIn 0.3s ease-out;
}

.ekibimiz-popup.zoom-in .ekibimiz-popup-content {
    animation: zoomIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
