/* 联赛和球队页面样式 */

/* ==================== 搜索过滤栏 ==================== */
.search-filter-bar {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper input {
    padding-left: 2.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
}

.search-input-wrapper input:focus {
    background: var(--bg-input);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* ==================== 联赛卡片 ==================== */
.league-card-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.league-card-modern:hover {
    background: var(--bg-hover);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.league-card-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px;
}

.league-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.league-card-info {
    flex: 1;
    min-width: 0;
}

.league-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.league-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.league-card-meta .country-flag {
    width: 18px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.league-card-meta .league-type {
    padding: 0.15rem 0.5rem;
    background: rgba(88, 166, 255, 0.1);
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.league-card-badge {
    flex-shrink: 0;
}

.league-card-arrow {
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.league-card-modern:hover .league-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ==================== 球队卡片 ==================== */
.team-card-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.team-card-modern:hover {
    background: var(--bg-hover);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-card-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px;
}

.team-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-card-info {
    flex: 1;
    min-width: 0;
}

.team-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.team-card-meta .team-country {
    font-weight: 500;
}

.team-card-meta .team-founded {
    opacity: 0.8;
}

.team-venue {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.team-venue i {
    color: var(--color-primary);
    font-size: 0.7rem;
}

.team-card-arrow {
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.team-card-modern:hover .team-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ==================== 详情页头部 ==================== */
.league-hero-logo,
.team-hero-logo {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    flex-shrink: 0;
}

.league-hero-logo img,
.team-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.league-hero-title,
.team-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

.league-hero-meta,
.team-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    flex-wrap: wrap;
}

.country-flag-lg {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
}

.meta-sep {
    color: #4a5568;
}

.team-country-badge {
    padding: 0.2rem 0.6rem;
    background: rgba(88, 166, 255, 0.15);
    color: var(--color-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==================== 球队详情页 ==================== */
.team-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.venue-image {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-hover);
}

.venue-image img {
    width: 100%;
    height: auto;
    display: block;
}

.venue-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.team-logo-large {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.team-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-stat-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.15) 0%, rgba(88, 166, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.team-stat-badge .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.team-stat-badge .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== 积分榜表格 ==================== */
.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.standings-table .team-cell:hover {
    color: var(--color-primary);
}

.standings-table .team-cell img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ==================== 分页信息 ==================== */
.pagination-info {
    padding: 0.5rem;
}

/* ==================== 分页组件 ==================== */
.pagination {
    gap: 0.25rem;
}

.pagination .page-item .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background: var(--bg-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3b82f6 100%);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-item .page-link i {
    font-size: 0.85rem;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .league-card-modern,
    .team-card-modern {
        padding: 0.875rem 1rem;
    }
    
    .league-card-logo,
    .team-card-logo {
        width: 48px;
        height: 48px;
    }
    
    .league-card-name,
    .team-card-name {
        font-size: 0.95rem;
    }
    
    .league-hero-logo,
    .team-hero-logo {
        width: 70px;
        height: 70px;
    }
    
    .league-hero-title,
    .team-hero-title {
        font-size: 1.35rem;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .search-filter-bar form {
        flex-direction: column;
    }
    
    .search-filter-bar .btn {
        width: 100%;
    }
    
    /* 分页响应式 - 移动端只显示箭头，隐藏数字页码 */
    .pagination .page-item .page-link {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        font-size: 0.9rem;
    }
    
    .pagination .page-item .page-link i {
        font-size: 0.8rem;
    }
    
    /* 移动端隐藏中间页码，只保留箭头 */
    .pagination .page-item.page-number {
        display: none;
    }
    
    .pagination .page-item:not(.page-number) .page-link {
        min-width: 44px;
        padding: 0.5rem 0.85rem;
    }
}
