/* Zentrierung für den Mount-Container */
#search-mount {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px 0;
}

.search-module-container {
    width: 100%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    z-index: 1;
    margin: 0 20px;
    box-sizing: border-box;
}

/* 1px RGB Rahmen */
.search-module-container::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(90deg, #00fbff, #007bff, #ff00c1, #00fbff);
    background-size: 200% auto;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 5s linear infinite;
    z-index: -1;
}

@keyframes borderFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Header Bereich */
.search-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.search-icon-box {
    background: rgba(104, 71, 188, 0.15);
    padding: 10px;
    border-radius: 10px;
    color: #b271ff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-title-wrap h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.search-title-wrap p {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: #888;
}

/* Input Feld */
.search-input-wrap {
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: #00fbff;
    box-shadow: 0 0 15px rgba(0, 251, 255, 0.1);
}

/* Suchergebnis Karte (Avatar) */
.search-result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 251, 255, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s ease;
    animation: fadeInResult 0.3s ease-out forwards;
}

.search-result-card:hover {
    background: rgba(0, 251, 255, 0.08);
    border-color: #00fbff;
    transform: scale(1.02);
}

.result-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

#player-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0; 
}

/* Statistik Grid Layout */
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: stretch;
}

/* Grundstyle für alle Karten (inkl. Fix gegen lila/blaue Links) */
.stat-mini-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    color: #fff !important;
    min-height: 100px;
    box-sizing: border-box;
}

/* Spezifisch für den Ban-Link (Die mittlere Karte) */
.ban-card-link {
    border: 1px solid rgba(255, 77, 77, 0.3) !important;
    background: rgba(255, 77, 77, 0.05) !important;
    cursor: pointer !important;
}

/* Hover-Effekt für die Ban-Karte */
.ban-card-link:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 77, 77, 0.2) !important;
    border-color: #ff4d4d !important;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3) !important;
}

/* Verhindert lila Farbe nach dem Klicken bei allen Links im Grid */
.stat-mini-card:visited, 
.stat-mini-card:active, 
.stat-mini-card:focus {
    color: #fff !important;
    text-decoration: none !important;
}

/* Icons & Texte */
.stat-icon {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 8px;
}

.highlight-red-icon {
    color: #ff4d4d !important;
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.3));
}

.highlight-red-value {
    color: #ff4d4d !important;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    margin: 4px 0 0 0;
    letter-spacing: 1px;
}

.highlight-green { color: #00fbff !important; }
.highlight-purple { color: #b271ff !important; }

/* Animationen */
@keyframes fadeInResult {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}