/**
 * team.css - Spezifische Styles für Team-Seite
 * KOMPLETT NEU MIT ECHTEN ICONS
 */

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ============================================
   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 BANNER
   ============================================ */
.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.admin { 
    background: linear-gradient(135deg, #8b5cf6 0%, #4c1d95 100%); 
}

/* ============================================
   TEAM AVATAR
   ============================================ */
.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
   ============================================ */
.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; 
    color: var(--text);
}

.team-card-body p { 
    font-size: 0.88rem; 
    color: var(--muted); 
    margin-bottom: 1rem; 
    line-height: 1.5;
}

/* ============================================
   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; 
    border: 1px solid rgba(217,119,6,0.3);
}

.role-mod { 
    background: rgba(14,165,233,0.2); 
    color: var(--cyan); 
    border: 1px solid rgba(14,165,233,0.3);
}

.role-admin { 
    background: rgba(139,92,246,0.2); 
    color: var(--accent2); 
    border: 1px solid rgba(139,92,246,0.3);
}

/* ============================================
   SOCIAL LINKS (auf der Karte - runde Icons)
   ============================================ */
.social-links { 
    display: flex; 
    gap: 0.5rem; 
    flex-wrap: wrap; 
    justify-content: center;
    margin-top: 0.5rem;
}

.social-link {
    background: var(--card2); 
    border: 1px solid var(--border); 
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-decoration: none; 
    transition: all 0.2s;
}

.social-link:hover { 
    border-color: var(--accent2); 
    transform: translateY(-2px);
    background: var(--card);
}

.social-link img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: all 0.2s;
}

.social-link:hover img {
    filter: brightness(1.2) invert(0);
}

/* Plattform-spezifische Hover-Farben */
.social-link[title*="Twitch"]:hover { border-color: #9146ff; }
.social-link[title*="YouTube"]:hover { border-color: #ff0000; }
.social-link[title*="Instagram"]:hover { border-color: #e1306c; }
.social-link[title*="TikTok"]:hover { border-color: #00f2ea; }
.social-link[title*="Twitter"]:hover { border-color: #1da1f2; }
.social-link[title*="Discord"]:hover { border-color: #5865f2; }
.social-link[title*="GitHub"]:hover { border-color: #f5f5f5; }
.social-link[title*="Website"]:hover { border-color: var(--accent2); }
.social-link[title*="E-Mail"]:hover { border-color: #ea4335; }

/* ============================================
   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; 
}

.empty-card small {
    color: var(--border);
    font-size: 0.8rem;
}

/* ============================================
   POPUP/MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    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 Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    transform: rotate(90deg);
}

/* Modal Banner */
.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, #8b5cf6 0%, #4c1d95 100%); 
}

/* Modal Avatar */
.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 */
.modal-body {
    padding: 4rem 2rem 2rem;
}

.modal-body h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.modal-role {
    display: inline-block;
    border-radius: 999px;
    padding: 0.25rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
}

/* Modal Sections */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent2);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.modal-section p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Specialties Tags */
.modal-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
    transition: all 0.2s;
}

.specialty-tag:hover {
    border-color: var(--accent2);
    color: var(--text);
}

/* Joined Date */
.modal-joined {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

/* Modal Social Links (mit Text) */
.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.6rem 1.2rem;
    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);
    transform: translateY(-2px);
    background: var(--card);
}

.modal-social-link img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: all 0.2s;
}

.modal-social-link:hover img {
    filter: brightness(1.2) invert(0);
}

/* Modal Footer */
.modal-footer {
    margin-top: 2rem;
    text-align: right;
}

.btn-small {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 63, 197, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 600px) {
    .team-grid {
        gap: 1rem;
    }
    
    .team-avatar {
        width: 60px;
        height: 60px;
        bottom: -30px;
    }
    
    .team-card-body {
        padding: 2.5rem 1rem 1rem;
    }
    
    .team-card-body h3 {
        font-size: 1.1rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link img {
        width: 16px;
        height: 16px;
    }
    
    .modal-avatar {
        width: 80px;
        height: 80px;
        bottom: -40px;
        left: 1.5rem;
    }
    
    .modal-body {
        padding: 3.5rem 1.5rem 1.5rem;
    }
    
    .modal-body h2 {
        font-size: 1.5rem;
    }
    
    .modal-social-link {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}