/* Team Module Styles - Dapper Agency Inspired */

.team-section {
    padding: 80px 8rem;
    background: #fff;
}

.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.1;
}

.team-header h2 .highlight {
    color: #6366f1;
    font-style: italic;
}

.team-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Team Categories */
.team-categories {
    margin-bottom: 60px;
}

.team-category {
    margin-bottom: 80px;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-category-header {
    text-align: start;
    margin-bottom: 50px;
}

.team-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.team-category-title .highlight {
    color: #6366f1;
    font-style: italic;
}

.team-category-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
}

/* Team Member Card */
.team-member {
    background: transparent;
    border-radius: 0;
    padding: 0;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.team-member:hover {
    transform: rotate(-2deg) scale(1.02);
    z-index: 10;
}

/* Hover effect: SADECE item üzerine gelince tetiklensin; tüm kategorilerdeki diğerleri soluklaşsın */
/* Sadece HOVER OLMAYANLARI soluklaştır (hovered item etkilenmez) */
.team-categories:has(.team-member:hover) .team-member:not(:hover) {
    transform: scale(0.96);
    opacity: 0.6;
    filter: grayscale(25%);
}

/* Hovered item büyüsün ve sola yatık açı alsın */
.team-categories .team-member:hover {
    transform: rotate(-3deg) scale(1.08);
    opacity: 1;
    filter: none;
    z-index: 11;
}

/* Diğer üyeleri soluklaştır - JavaScript ile kontrol edilecek */
.team-member.fade-others {
    opacity: 0.4;
    transform: scale(0.98);
}

.team-member-image {
    width: 100%;
    padding-top: 100%;
    /* 1:1 oran için */
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.team-member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.05);
}

.team-member-content {
    padding: 12px 0 0 0;
    text-align: left;
    background: transparent;
    border-radius: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-member-content h4.team-member-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    transition: color 0.3s ease;
    display: block;
}

.team-member:hover .team-member-content h4.team-member-name {
    color: #1a1a1a !important;
}

.team-member-content p.team-member-position {
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    transition: color 0.3s ease;
    display: block;
}

.team-member:hover .team-member-content p.team-member-position {
    color: #6b7280 !important;
}

.team-member-links {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.team-member:hover .team-member-links {
    opacity: 1;
    transform: translateY(0);
}

.team-member-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #0077b5;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 119, 181, 0.3);
}

.team-member-link:hover {
    background: #005885;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* Empty State */
.team-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.team-empty i {
    font-size: 4rem;
    margin-bottom: 24px;
    color: #d1d5db;
}

.team-empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.team-empty p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-header h2 {
        font-size: 3rem;
    }

    .team-category-title {
        font-size: 2.25rem;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 60px 0;
    }

    .team-header {
        margin-bottom: 60px;
    }

    .team-header h2 {
        font-size: 2.5rem;
    }

    .team-header p {
        font-size: 1.125rem;
    }

    .team-category {
        margin-bottom: 60px;
    }

    .team-category-header {
        margin-bottom: 40px;
    }

    .team-category-title {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .team-member-content {
        padding: 12px 0 0 0;
    }
}

@media (max-width: 480px) {
    .team-header h2 {
        font-size: 2rem;
    }

    .team-category-title {
        font-size: 1.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}

/* Loading Animation */
.team-member.loading {
    opacity: 0.7;
    pointer-events: none;
}

.team-member.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}