/* ============================================
   GEARGUARD TEAMS STYLES
   ============================================ */

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Team Card */
.team-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.team-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.team-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.team-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Team Stats */
.team-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.workload-high {
    background: rgba(255, 107, 107, 0.1);
}

.workload-high .stat-value {
    color: var(--danger);
}

.workload-medium {
    background: rgba(255, 215, 0, 0.1);
}

.workload-medium .stat-value {
    color: var(--gold);
}

.workload-low {
    background: rgba(78, 205, 196, 0.1);
}

.workload-low .stat-value {
    color: var(--success);
}

/* Expand Button */
.team-expand-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-expand-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.expand-icon {
    transition: transform 0.3s ease;
}

.team-card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Team Details (Expandable) */
.team-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card.expanded .team-details {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Members List */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
}

.member-role {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: capitalize;
}

.member-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Equipment List */
.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.equipment-item .eq-icon {
    font-size: 1.2rem;
}

.equipment-item .eq-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--white);
}

.equipment-item .eq-status {
    font-size: 0.65rem;
}

.no-members, .no-equipment {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.more-items {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: calc(50% - 0.5rem);
    }

    .member-email {
        display: none;
    }
}

