/* === Glasoptik-Suchbox === */
.glassbox {
    /*background: rgba(25, 25, 25, 0.65);*/
    backdrop-filter: blur(10px);
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
    max-width: 900px;
}

/* === Input & Select transparent === */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-control:focus {
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0,170,255,0.3);
}

/* === Ergebnis-Karten === */
#results .card {
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    margin: 10px;
    width: 320px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
    opacity: 0;
}
#results .card.loaded {
    opacity: 1;
    transition: opacity 1s ease;
}
#results .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.3);
}

/* === Buttons === */
.btn-group .btn {
    backdrop-filter: blur(5px);
}

/* === Lazy Fade-in === */
.lazy-bg {
    transition: opacity 1s ease;
}

/* === Ladeindikator === */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-top: 40px;
    backdrop-filter: blur(4px);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 10px;
}

/* === osu!-Style Difficulty Colors === */
.diff-badge.diff-easy {
    background: linear-gradient(90deg, #4cd964 0%, #2ecc71 100%);
}

.diff-badge.diff-normal {
    background: linear-gradient(90deg, #1e90ff 0%, #007aff 100%);
}

.diff-badge.diff-hard {
    background: linear-gradient(90deg, #ffcc00 0%, #f1c40f 100%);
}

.diff-badge.diff-insane {
    background: linear-gradient(90deg, #ff8c00 0%, #e67e22 100%);
}

.diff-badge.diff-expert {
    background: linear-gradient(90deg, #ff4d4d 0%, #c0392b 100%);
}

.diff-badge.diff-extra {
    background: linear-gradient(90deg, #bf40bf 0%, #8e44ad 100%);
}

/* Overdose / Extreme – ab 8.5★ */
.diff-badge.diff-overdose {
    background: linear-gradient(90deg, #111 0%, #000 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5),
                0 0 20px rgba(0, 0, 0, 0.9);
}

/* === Gemeinsames Styling === */
.diff-badge {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 12px;
    color: #fff;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.diff-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.diff-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.star {
    opacity: 0.85;
    font-weight: 600;
}

/* Farben nach Schwierigkeit */
.diff-badge.bg-success   { background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%); }
.diff-badge.bg-info      { background: linear-gradient(90deg, #3498db 0%, #2980b9 100%); }
.diff-badge.bg-warning   { background: linear-gradient(90deg, #f1c40f 0%, #e67e22 100%); }
.diff-badge.bg-danger    { background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%); }

.star {
    opacity: 0.85;
    font-weight: 600;
}



/* === Karten-Animation === */
#results .card {
    opacity: 0;
    transform: translateY(10px);
}
#results .card.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}


/* === Load More Button === */
#loadMore {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 136, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.2);
}
#loadMore:hover {
    background-color: rgba(0, 136, 255, 0.4);
}

/* === Responsiv === */
@media (max-width: 768px) {
    #results .card {
        width: 95%;
    }
}
