/* Team Builder Styles */

.teambuilder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    overflow-y: auto;
    padding: 20px;
}

.teambuilder-modal.visible {
    display: block;
    opacity: 1;
}

.teambuilder-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    min-height: 90vh;
}

.teambuilder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.teambuilder-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Team Slots */
.team-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.team-slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.team-slot:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.team-slot.filled {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.team-slot-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.team-slot-name {
    position: absolute;
    bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.team-slot-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.team-slot:hover .team-slot-remove {
    opacity: 1;
}

.team-slot-add-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Analysis Section */
.analysis-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.type-coverage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coverage-item {
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.coverage-count {
    font-weight: 700;
    color: #4ade80;
}

.coverage-weak {
    color: #f87171;
}

/* Suggestions */
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.suggestion-reason {
    font-size: 0.7rem;
    color: #4ade80;
    margin-top: 5px;
}

/* Toolbar Button */
.teambuilder-toggle-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: 10px;
}

.teambuilder-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .analysis-section {
        grid-template-columns: 1fr;
    }

    .team-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}