/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #121212;
    color: #eee;
    min-height: 100vh;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

/* === Team Sections === */
.team-section {
    margin-bottom: 56px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #d32f2f;
    margin-top: 8px;
    border-radius: 2px;
}

/* === Profile Grid === */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* === Profile Cards === */
.profile-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 24px 20px;
    border: 2px solid #2a2a2a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: #d32f2f;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

/* === Profile Avatar === */
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.profile-card:hover .profile-avatar {
    border-color: #444;
}

/* === Profile Content === */
.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.profile-flag {
    font-size: 1rem;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    overflow: hidden;
    display: inline-block;
}

.profile-status {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.profile-verified {
    color: #1da1f2;
    font-size: 0.9rem;
}

.profile-tag {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 0.85rem;
}

/* === Social Icons === */
.profile-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-social > a,
.profile-social > i {
    font-size: 1rem;
    color: #aaa;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #141414;
    border: 1px solid #2a2a2a;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.profile-social > a:hover,
.profile-social > i:hover {
    color: #fff;
    border-color: #444;
    transform: translateY(-2px);
}

.profile-social > i.fa-discord:hover,
.profile-social > a:has(.fa-discord):hover   { color: #7289da; border-color: #7289da; }
.profile-social > i.fa-tiktok:hover,
.profile-social > a:has(.fa-tiktok):hover    { color: #25f4ee; border-color: #25f4ee; }
.profile-social > i.fa-instagram:hover,
.profile-social > a:has(.fa-instagram):hover { color: #e1306c; border-color: #e1306c; }
.profile-social > i.fa-youtube:hover,
.profile-social > a:has(.fa-youtube):hover   { color: #ff0000; border-color: #ff0000; }
.profile-social > i.fa-envelope:hover,
.profile-social > a:has(.fa-envelope):hover  { color: #ccc;    border-color: #555;    }
.profile-social > i.fa-external-link:hover,
.profile-social > a:has(.fa-external-link):hover { color: #d32f2f; border-color: #d32f2f; }

/* === Toast === */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1f1f1f;
    color: #eee;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    color: #7289da;
}

.toast.error i {
    color: #e74c3c;
}

/* === Blue Accent Card (z.B. TacticalBlue) === */
.card-blue:hover {
    border-color: #3270E8;
    box-shadow: 0 8px 20px rgba(50, 112, 232, 0.3);
}

.card-violet:hover {
    border-color: #7C3AED;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* === Apply Card === */
.apply-card {
    border-color: rgba(211, 47, 47, 0.3);
    cursor: pointer;
}

.apply-card:hover {
    border-color: #d32f2f;
}

/* === Clickable Cards === */
.profile-card:not(.apply-card) {
    cursor: pointer;
}

/* === Team Modal === */
.team-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.team-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.team-modal {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.team-modal-overlay.active .team-modal {
    transform: translateY(0) scale(1);
}

.team-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #141414;
    border: 1px solid #2a2a2a;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.2s ease;
}

.team-modal-close:hover {
    color: #d32f2f;
    border-color: #d32f2f;
}

.team-modal-visual {
    flex: 0 0 42%;
    background: radial-gradient(circle at 50% 20%, #232323 0%, #141414 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    border-right: 1px solid #2a2a2a;
    position: relative;
}

.team-modal-skin {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
    cursor: grab;
    touch-action: none;
}

.team-modal-skin:active {
    cursor: grabbing;
}

/* Der statische Fallback (PNG) ist echte Pixelgrafik und profitiert vom knackigen Nearest-Neighbor-Scaling */
img.team-modal-skin {
    image-rendering: pixelated;
}

.team-modal-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #777;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    pointer-events: none;
}

.team-modal-info {
    flex: 1;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-modal-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-modal-rank {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -8px 0 0;
}

.team-modal-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-modal-stat {
    background: linear-gradient(155deg, #191919 0%, #131313 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.team-modal-stat:hover {
    border-color: #3a3a3a;
    background: linear-gradient(155deg, #1e1e1e 0%, #161616 100%);
}

.team-modal-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6e6e6e;
    font-weight: 600;
    flex-shrink: 0;
}

.team-modal-stat-value {
    font-size: 0.95rem;
    color: #f2f2f2;
    font-weight: 600;
    text-align: right;
}

.team-modal-quote-wrap {
    background: linear-gradient(155deg, #191919 0%, #131313 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}

.team-modal-quote-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6e6e6e;
    font-weight: 600;
    margin-bottom: 6px;
}

.team-modal-quote-label i {
    color: #d32f2f;
    font-size: 0.75rem;
}

.team-modal-quote {
    color: #ccc;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
}

.team-modal-quote-wrap.is-empty {
    display: none;
}

.team-modal-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 6px;
}

.team-modal-socials > a,
.team-modal-socials > i {
    font-size: 1rem;
    color: #aaa;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #141414;
    border: 1px solid #2a2a2a;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.team-modal-socials > a:hover,
.team-modal-socials > i:hover {
    color: #fff;
    border-color: #444;
    transform: translateY(-2px);
}

.team-modal-socials > i.fa-discord:hover,
.team-modal-socials > a:has(.fa-discord):hover   { color: #7289da; border-color: #7289da; }
.team-modal-socials > i.fa-tiktok:hover,
.team-modal-socials > a:has(.fa-tiktok):hover    { color: #25f4ee; border-color: #25f4ee; }
.team-modal-socials > i.fa-instagram:hover,
.team-modal-socials > a:has(.fa-instagram):hover { color: #e1306c; border-color: #e1306c; }
.team-modal-socials > i.fa-youtube:hover,
.team-modal-socials > a:has(.fa-youtube):hover   { color: #ff0000; border-color: #ff0000; }
.team-modal-socials > i.fa-envelope:hover,
.team-modal-socials > a:has(.fa-envelope):hover  { color: #ccc; border-color: #555; }
.team-modal-socials > i.fa-external-link:hover,
.team-modal-socials > a:has(.fa-external-link):hover { color: #d32f2f; border-color: #d32f2f; }

/* === Responsive === */
@media (max-width: 1200px) {
    .profile-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-card {
        padding: 20px 16px;
    }

    .profile-name {
        font-size: 1.05rem;
    }

    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .team-modal {
        flex-direction: column;
        max-height: 85vh;
    }

    .team-modal-visual {
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding: 24px;
    }

    .team-modal-skin {
        max-height: 220px;
    }

    .team-modal-info {
        padding: 24px 20px;
    }

    .team-modal-hint {
        bottom: 4px;
        padding: 5px;
        font-size: 0.8rem;
    }

    .team-modal-hint-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .profile-status {
        font-size: 0.85rem;
    }

    .profile-tag {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}
