/* ===== Teams Page Styles ===== */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 2.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.empty-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.empty-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    font-size: 2rem;
}

.info-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.info-text {
    font-size: 0.85rem;
    color: #666;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.action-btn {
    padding: 0.875rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(133,45,136,0.4);
}

.action-btn.secondary {
    background: white;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.action-btn.secondary:hover {
    background: var(--primary-purple);
    color: white;
}

.empty-tips {
    padding: 1rem 1.5rem;
    background: rgba(133,45,136,0.08);
    border-radius: 10px;
}

.empty-tips p {
    font-size: 0.9rem;
    color: #666;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666;
}

.group-section {
    margin-bottom: 3rem;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.group-badge {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.group-title {
    font-size: 1.5rem;
    color: var(--dark-green);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-flag {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.team-confederation {
    display: inline-block;
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-purple);
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
}

.view-squad {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.view-squad:hover {
    opacity: 0.9;
}

.team-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.team-detail-overlay.active {
    display: flex;
}

.team-detail {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.detail-header {
    background: var(--gradient-primary);
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.detail-flag {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid white;
}

.detail-name {
    font-size: 1.8rem;
    font-weight: bold;
}

.detail-content {
    padding: 2rem;
}

.section-title {
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-purple);
}

.squad-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.player-number {
    width: 30px;
    height: 30px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: bold;
    color: var(--dark-green);
}

.player-position {
    font-size: 0.8rem;
    color: #666;
}

.team-honors {
    list-style: none;
}

.team-honors li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.team-honors li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .squad-list {
        grid-template-columns: 1fr;
    }
}