/**
 * Archive Team Page Fix
 * Anasayfadaki team kartları ile uyumlu görünüm
 */

/* Archive team sayfası için xb-team kartları - Anasayfadaki gibi */
.archive.post-type-archive-team .xb-team .xb-item--img,
.team .xb-team .xb-item--img {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.archive.post-type-archive-team .xb-team .xb-item--img img,
.team .xb-team .xb-item--img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

/* WordPress'in otomatik boyutlarını override et */
.archive.post-type-archive-team .xb-team .xb-item--img img[width],
.archive.post-type-archive-team .xb-team .xb-item--img img[height],
.team .xb-team .xb-item--img img[width],
.team .xb-team .xb-item--img img[height] {
    width: 100% !important;
    height: 100% !important;
}

.archive.post-type-archive-team .xb-team:hover .xb-item--img img {
    transform: scale(1.05);
}

/* Team kartları genel düzenleme - Anasayfadaki gibi */
.archive.post-type-archive-team .xb-team,
.team .xb-team {
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
    height: auto;
}

.archive.post-type-archive-team .xb-item--inner,
.team .xb-item--inner {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.archive.post-type-archive-team .xb-item--inner:hover,
.team .xb-item--inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.archive.post-type-archive-team .xb-team:hover .xb-item--img img,
.team .xb-team:hover .xb-item--img img {
    transform: scale(1.05);
}

.archive.post-type-archive-team .xb-item--inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive.post-type-archive-team .xb-item--holder {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
}

.archive.post-type-archive-team .xb-item--name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.archive.post-type-archive-team .xb-item--name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive.post-type-archive-team .xb-item--name a:hover {
    color: #4A90E2;
}

.archive.post-type-archive-team .xb-item--designation {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Sosyal medya linkleri - Anasayfadaki gibi */
.archive.post-type-archive-team .xb-item--social,
.team .xb-item--social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: auto;
}

.archive.post-type-archive-team .xb-item--social li,
.team .xb-item--social li {
    margin: 0;
}

.archive.post-type-archive-team .xb-item--social a,
.team .xb-item--social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.archive.post-type-archive-team .xb-item--social a:hover,
.team .xb-item--social a:hover {
    background: #4A90E2;
    color: #fff;
    transform: translateY(-2px);
}

/* Grid düzenlemesi */
.archive.post-type-archive-team .row {
    align-items: stretch;
}

.archive.post-type-archive-team .col-xl-3,
.archive.post-type-archive-team .col-lg-4,
.archive.post-type-archive-team .col-md-6 {
    display: flex;
    margin-bottom: 30px;
}

/* Responsive düzenlemeler */
@media (max-width: 991px) {
    .archive.post-type-archive-team .xb-team .xb-item--img {
        height: 260px;
    }
    
    .archive.post-type-archive-team .xb-team {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .archive.post-type-archive-team .xb-team .xb-item--img {
        height: 240px;
    }
    
    .archive.post-type-archive-team .xb-team {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .archive.post-type-archive-team .xb-item--name {
        font-size: 17px;
    }
    
    .archive.post-type-archive-team .xb-item--social a {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575px) {
    .archive.post-type-archive-team .xb-team .xb-item--img {
        height: 220px;
    }
    
    .archive.post-type-archive-team .col-xl-3,
    .archive.post-type-archive-team .col-lg-4,
    .archive.post-type-archive-team .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* No team content düzenlemesi */
.archive.post-type-archive-team .no-team {
    background: #fff;
    padding: 60px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.archive.post-type-archive-team .no-team i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.archive.post-type-archive-team .no-team h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 24px;
}

.archive.post-type-archive-team .no-team p {
    color: #999;
    font-size: 16px;
}

/* Pagination düzenlemesi */
.archive.post-type-archive-team .team-pagination {
    margin-top: 40px;
    text-align: center;
}

.archive.post-type-archive-team .team-pagination .pagination {
    justify-content: center;
    gap: 8px;
}

.archive.post-type-archive-team .team-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    margin: 0;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-weight: 500;
    min-width: 48px;
    height: 48px;
    border: 1px solid #e9ecef;
}

.archive.post-type-archive-team .team-pagination .page-numbers:hover,
.archive.post-type-archive-team .team-pagination .page-numbers.current {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}