/* A-Team styly */
.a-team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));  /* Reduced from 300px */
    gap: 1rem;  /* Reduced from 1.5rem */
    margin-top: 1rem;  /* Reduced from 1.5rem */
}

.a-team-item {
    background: var(--color-bg-secondary);
    border: var(--border-width) var(--border-style) var(--border-color) !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.a-team-main {
    padding: 1rem 1rem 0.75rem;  /* Reduced top/bottom padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.a-team-item.active .a-team-main {
    background: rgba(0, 0, 0, 0.3);
}

.a-team-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;  /* Reduced from 1.5rem */
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    opacity: 0;
    font-size: 0.85rem;  /* Slightly smaller font */
}

.a-team-item.active .a-team-details {
    max-height: 400px;  /* Reduced from 500px */
    padding: 0.75rem 1rem;  /* Reduced padding */
    opacity: 1;
}

.a-team-item.active {
    transform: translateY(-3px);  /* Reduced from 5px */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);  /* Softer shadow */
}

.a-team-avatar {
    width: 80px;  /* Reduced from 100px */
    height: 80px;  /* Reduced from 100px */
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.75rem;  /* Reduced from 1rem */
    border: 2px solid var(--color-accent);  /* Thinner border */
}

.a-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a-team-info {
    margin-bottom: 0.75rem;  /* Reduced from 1rem */
}

.a-team-name {
    font-size: 1.1rem;  /* Reduced from 1.25rem */
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.2rem;  /* Reduced from 0.25rem */
}

.a-team-rank {
    font-size: 0.9rem;  /* Reduced from 1rem */
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 0.4rem;  /* Reduced from 0.5rem */
}

.a-team-role-desc {
    font-size: 0.8rem;  /* Added for better control */
    color: var(--color-text-muted);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Detailní informace */
.detail-row {
    display: flex;
    margin-bottom: 0.5rem;  /* Reduced from 0.75rem */
    align-items: flex-start;
}

.detail-label {
    font-weight: 600;
    color: var(--color-accent);
    min-width: 85px;  /* Reduced from 100px */
    font-size: 0.85rem;  /* Slightly smaller */
}

.detail-value {
    flex: 1;
    text-align: left;
    color: var(--color-text-primary);
    font-size: 0.85rem;  /* Slightly smaller */
}

/* Responsivní styly */
@media (max-width: 768px) {
    .a-team-list {
        grid-template-columns: 1fr;
    }
    
    .a-team-avatar {
        width: 70px;  /* Adjusted for mobile */
        height: 70px;  /* Adjusted for mobile */
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        margin-bottom: 0.2rem;  /* Reduced from 0.25rem */
    }
}