/* Team Summary Cards */

.team-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0 30px 0;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.team-summary-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.team-summary-card h3 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.team-summary-card .big-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
    margin: 8px 0;
}

.team-summary-card .subtitle {
    font-size: 0.95rem;
    color: var(--text);
    margin: 8px 0 0 0;
}

.team-summary-card .time-range {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.team-summary-card.highlight {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(167, 139, 250, 0.1));
    border-color: var(--accent);
}

.team-summary-card .excess-note {
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--excess-bg);
    color: var(--excess-text);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* Remove compact mode classes - always show cards */
#team-summary {
    display: grid !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .team-summary {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 16px 0 24px 0;
        padding-bottom: 24px;
    }

    .team-summary-card {
        padding: 20px;
    }

    .team-summary-card:hover {
        transform: none; /* Disable hover lift on mobile */
    }

    .team-summary-card .big-number {
        font-size: 2.5rem;
    }

    .team-summary-card h3 {
        font-size: 0.85rem;
    }

    .team-summary-card .subtitle {
        font-size: 0.9rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .team-summary {
        gap: 12px;
    }

    .team-summary-card {
        padding: 16px;
    }

    .team-summary-card .big-number {
        font-size: 2rem;
    }
}

/* Tablet landscape - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .team-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}
