/* ============================================
   TEAM.CSS - SPEZIFISCHE STYLES FÜR TEAM-SEITE
   ============================================ */

/* Team Cards */
.team-card {
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius);
    overflow: hidden; 
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.team-card:hover { 
    border-color: var(--accent2); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px -5px rgba(108, 63, 197, 0.3);
}

.team-card-banner {
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, #4c1d95 100%);
    position: relative;
}

.team-card-banner.leader { 
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%); 
}

.team-card-banner.mod { 
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); 
}

.team-card-banner.builder { 
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%); 
}

.team-avatar {
    width: 80px; 
    height: 80px; 
    border-radius: 50%;
    border: 4px solid var(--bg); 
    background: var(--card2);
    position: absolute; 
    bottom: -40px; 
    left: 1.5rem;
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 2rem;
}

.team-avatar img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.team-card-body { 
    padding: 3rem 1.5rem 1.5rem; 
}

.team-card-body h3 { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin-bottom: 0.2rem; 
}

/* Role Badges */
.role-badge {
    display: inline-block; 
    border-radius: 999px; 
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem; 
    font-weight: 700; 
    margin-bottom: 0.75rem;
}

.role-leader { 
    background: rgba(217,119,6,0.2); 
    color: #fbbf24; 
}

.role-mod { 
    background: rgba(14,165,233,0.2); 
    color: var(--cyan); 
}

.role-builder { 
    background: rgba(16,185,129,0.2); 
    color: #4ade80; 
}

.role-admin { 
    background: rgba(139,92,246,0.2); 
    color: var(--accent2); 
}

.team-card-body p { 
    font-size: 0.88rem; 
    color: var(--muted); 
    margin-bottom: 1rem; 
}

/* Social Links */
.social-links { 
    display: flex; 
    gap: 0.5rem; 
    flex-wrap: wrap; 
}

.social-link {
    background: var(--card2); 
    border: 1px solid var(--border); 
    border-radius: 999px;
    padding: 0.3rem 0.9rem; 
    font-size: 0.78rem; 
    font-weight: 700; 
    color: var(--muted);
    text-decoration: none; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 0.35rem;
}

.social-link:hover { 
    border-color: var(--accent2); 
    color: var(--accent2); 
}

/* Empty Card */
.empty-card {
    background: var(--card); 
    border: 2px dashed var(--border); 
    border-radius: var(--radius);
    padding: 2.5rem; 
    text-align: center; 
    color: var(--muted);
}

.empty-card .icon { 
    font-size: 2rem; 
    margin-bottom: 0.75rem; 
}

.empty-card p { 
    font-size: 0.9rem; 
}

/* ============================================
   POPUP / MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--accent) 0%, #4c1d95 100%);
    position: relative;
}

.modal-banner.leader { background: linear-gradient(135deg, #d97706 0%, #92400e 100%); }
.modal-banner.mod { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.modal-banner.admin { background: linear-gradient(135deg, var(--accent2) 0%, #4c1d95 100%); }

.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg);
    background: var(--card2);
    position: absolute;
    bottom: -50px;
    left: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 4rem 2rem 2rem;
}

.modal-body h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.modal-role {
    display: inline-block;
    border-radius: 999px;
    padding: 0.25rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent2);
    margin-bottom: 0.5rem;
}

.modal-section p {
    color: var(--text);
    line-height: 1.6;
}

.modal-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.modal-joined {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.modal-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-social-link {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-social-link:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    transform: translateY(-2px);
}