/* Teams generator specific styles */
.teams-container, .teams-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.team {
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Dynamic team colors - each team gets a unique color */
.team:nth-child(1) {
    background: linear-gradient(135deg, #fef7ff, #fae8ff);
    border: 2px solid #e879f9;
}

.team:nth-child(1) h4 {
    color: #be185d;
    border-bottom-color: #e879f9;
}

.team:nth-child(1) li {
    border-left-color: #e879f9;
    background: rgba(232, 121, 249, 0.1);
}

.team:nth-child(2) {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #60a5fa;
}

.team:nth-child(2) h4 {
    color: #1e40af;
    border-bottom-color: #60a5fa;
}

.team:nth-child(2) li {
    border-left-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.team:nth-child(3) {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #34d399;
}

.team:nth-child(3) h4 {
    color: #059669;
    border-bottom-color: #34d399;
}

.team:nth-child(3) li {
    border-left-color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.team:nth-child(4) {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    border: 2px solid #fb923c;
}

.team:nth-child(4) h4 {
    color: #ea580c;
    border-bottom-color: #fb923c;
}

.team:nth-child(4) li {
    border-left-color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
}

.team:nth-child(5) {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border: 2px solid #f87171;
}

.team:nth-child(5) h4 {
    color: #dc2626;
    border-bottom-color: #f87171;
}

.team:nth-child(5) li {
    border-left-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.team:nth-child(6) {
    background: linear-gradient(135deg, #f0f9ff, #bae6fd);
    border: 2px solid #0ea5e9;
}

.team:nth-child(6) h4 {
    color: #0369a1;
    border-bottom-color: #0ea5e9;
}

.team:nth-child(6) li {
    border-left-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

.team:nth-child(7) {
    background: linear-gradient(135deg, #faf5ff, #e9d5ff);
    border: 2px solid #a855f7;
}

.team:nth-child(7) h4 {
    color: #7c2d12;
    border-bottom-color: #a855f7;
}

.team:nth-child(7) li {
    border-left-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.team:nth-child(8) {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 2px solid #6b7280;
}

.team:nth-child(8) h4 {
    color: #374151;
    border-bottom-color: #6b7280;
}

.team:nth-child(8) li {
    border-left-color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.team:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team h4 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.team li {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.team li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team small {
    display: block;
    text-align: center;
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
}

/* Copy button styling for teams */
.copy-btn {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #3730a3, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

@media (max-width: 768px) {
    .teams-container, .teams-display {
        grid-template-columns: 1fr;
    }
    
    .team {
        padding: 1rem;
    }
    
    .team h4 {
        font-size: 1.2rem;
    }
}