/* 寻找队友页面样式 Find Teammates Page Styles */
.find-teammates-container {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 页面标题 Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 搜索区域 Search Section */
.search-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
}

#searchBtn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    height: fit-content;
}

/* 队友列表 Teammates List */
.teammates-list {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.list-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: none;
    border: 2px solid #e1e5e9;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 队友网格 Teammates Grid */
.teammates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.teammate-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.teammate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.teammate-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.teammate-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.teammate-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.teammate-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.teammate-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-color);
    font-size: 0.9rem;
}

.teammate-skills {
    margin-bottom: 20px;
}

.skills-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.teammate-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view {
    background: var(--primary-color);
    color: white;
}

.btn-view:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-invite {
    background: #28a745;
    color: white;
}

.btn-invite:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* 列表视图 List View */
.teammates-grid.list-view {
    grid-template-columns: 1fr;
}

.teammates-grid.list-view .teammate-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.teammates-grid.list-view .teammate-header {
    margin-bottom: 0;
}

.teammates-grid.list-view .teammate-details {
    margin-bottom: 0;
}

.teammates-grid.list-view .teammate-actions {
    flex-direction: column;
    gap: 8px;
}

/* 空状态 Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #999;
}

.empty-state p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* 响应式设计 Responsive Design */
@media (max-width: 768px) {
    .find-teammates-container {
        padding: 20px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .teammates-grid {
        grid-template-columns: 1fr;
    }
    
    .teammates-grid.list-view .teammate-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .teammate-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .search-section,
    .teammates-list {
        padding: 20px;
        margin: 0 15px 20px;
    }
    
    .teammate-card {
        padding: 20px;
    }
}

/* 加载状态 Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 动画效果 Animations */
.teammate-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.teammate-card:nth-child(1) { animation-delay: 0.1s; }
.teammate-card:nth-child(2) { animation-delay: 0.2s; }
.teammate-card:nth-child(3) { animation-delay: 0.3s; }
.teammate-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
