/**
 * Modern Square Team Cards
 * Yeni kare şeklinde eşit yükseklikte team kartları
 * Responsive tasarım ile modern görünüm
 * Override global max-width: 100vw !important rule
 */

/* CRITICAL: Override global mobile overflow fix */
html body .vtc-modern-team-photo img,
html body .vtc-modern-team-card,
html body .vtc-modern-team-grid,
html body .vtc-modern-team-photo,
body.post-type-archive-team .vtc-modern-team-photo img,
body.post-type-archive-team .vtc-modern-team-card,
body.post-type-archive-team .vtc-modern-team-grid,
body.post-type-archive-team .vtc-modern-team-photo {
    max-width: none !important;
    width: auto !important;
}

/* Main container styling */
.vtc-modern-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0;
    margin: 0;
}

/* Modern square team card base */
.vtc-modern-team-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
}

.vtc-modern-team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Image container - 200px kartta %70 alan */
.vtc-modern-team-photo {
    position: relative;
    width: 100%;
    height: 140px !important;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.vtc-modern-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

.vtc-modern-team-card:hover .vtc-modern-team-photo img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Default avatar için modern gradient */
.vtc-modern-default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.vtc-modern-default-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vtc-modern-team-card:hover .vtc-modern-default-avatar::before {
    opacity: 1;
}

.vtc-modern-default-avatar i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

/* Overlay with social links */
.vtc-modern-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 80%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.vtc-modern-team-card:hover .vtc-modern-social-overlay {
    opacity: 1;
}

.vtc-modern-social-links {
    display: flex;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.vtc-modern-team-card:hover .vtc-modern-social-links {
    transform: translateY(0);
}

.vtc-modern-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.vtc-modern-social-link:hover {
    background: #ffffff;
    color: #333333;
    transform: translateY(-3px) scale(1.1);
    border-color: #ffffff;
}

/* Content area */
.vtc-modern-team-content {
    padding: 12px 16px;
    height: 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff;
    position: relative;
}

.vtc-modern-team-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    line-height: 1.1;
}

.vtc-modern-team-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vtc-modern-team-name a:hover {
    color: #667eea;
}

.vtc-modern-team-position {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.vtc-modern-team-contacts {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: auto;
}

.vtc-modern-contact-btn {
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.3s ease;
}

.vtc-modern-contact-btn:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design - TÜM CİHAZLARDA 200PX SABİT YÜKSEKLİK */
@media (max-width: 1200px) {
    .vtc-modern-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .vtc-modern-team-card {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .vtc-modern-team-photo {
        height: 140px !important;
    }
    
    .vtc-modern-team-content {
        height: 60px !important;
    }
}

@media (max-width: 992px) {
    .vtc-modern-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .vtc-modern-team-card {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .vtc-modern-team-photo {
        height: 140px !important;
    }
    
    .vtc-modern-team-content {
        height: 60px !important;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .vtc-modern-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .vtc-modern-team-card {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .vtc-modern-team-photo {
        height: 140px !important;
    }
    
    .vtc-modern-team-content {
        height: 60px !important;
        padding: 10px 12px;
    }
    
    .vtc-modern-team-name {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .vtc-modern-team-position {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .vtc-modern-contact-btn {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    .vtc-modern-social-overlay {
        padding: 12px;
    }
    
    .vtc-modern-social-link {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .vtc-modern-default-avatar i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .vtc-modern-team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vtc-modern-team-card {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        margin: 0 auto;
        max-width: 320px;
    }
    
    .vtc-modern-team-photo {
        height: 140px !important;
    }
    
    .vtc-modern-team-content {
        height: 60px !important;
        padding: 12px 16px;
    }
    
    .vtc-modern-team-name {
        font-size: 14px;
    }
    
    .vtc-modern-team-position {
        font-size: 11px;
    }
}

/* Loading animation */
.vtc-modern-team-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover animations */
.vtc-modern-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(103, 126, 234, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.vtc-modern-team-card:hover::before {
    opacity: 1;
}

/* Accessibility improvements */
.vtc-modern-team-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 4px;
}

.vtc-modern-social-link:focus,
.vtc-modern-contact-btn:focus,
.vtc-modern-team-name a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .vtc-modern-team-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .vtc-modern-social-overlay {
        display: none;
    }
}