/**
 * src/css/search.css
 * ZUSTÄNDIGKEIT: Partnersuche-Elemente (Dual-Scale System & Miniaturen).
 * FIX: Radikale Spezifität gegen riesige Bilder (base.css).
 * FIX: Suchradius wird jetzt innerhalb des Balkens geklippt (overflow: hidden).
 * LAYOUT: Symmetrischer Vergleich (Ich: Links | Partner: Rechts).
 * STATUS: v12.6 - Finaler UI-Standard mit Clipping-Fix.
 */

/* --- 1. HAUPT-CONTAINER --- */
.search-view-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.search-card-fokus {
    margin: 60px auto 30px auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 2. DUAL-SCALE SYSTEM (DIE BALKEN) --- */
.dual-scale-container {
    width: 100%;
    max-width: 700px;
    margin: 40px auto; 
    display: flex;
    flex-direction: column;
    gap: 50px; 
}

.scale-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
}

/* --- REPARATUR-BLOCK: MINI-RINGE --- */
#app-container .mini-ring-scale {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    position: relative !important;
    overflow: hidden !important;
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid white !important;
    z-index: 10;
}

#app-container .mini-ring-scale::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../../ring.png') no-repeat center;
    background-size: 100% 100%;
    z-index: 5;
    pointer-events: none;
}

#app-container .mini-ring-scale img.mini-ring-img {
    width: 86% !important;
    height: 86% !important;
    max-width: 86% !important;
    max-height: 86% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    z-index: 2;
    display: block !important;
}

/* --- DIE BALKEN-TRACKS & RADII --- */
.scale-track-v2 {
    flex-grow: 1;
    height: 14px !important;
    background: #f5f5f5 !important;
    border-radius: 20px !important;
    position: relative !important;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    /* FIX: Verhindert, dass der grüne Radius über die Rundungen hinausragt */
    overflow: hidden !important; 
}

.radius-highlight {
    position: absolute;
    height: 100%;
    background: rgba(46, 204, 113, 0.15); /* Dezentes Grün */
    border-radius: 20px;
    top: 0;
    border-left: 1px dashed rgba(46, 204, 113, 0.4);
    border-right: 1px dashed rgba(46, 204, 113, 0.4);
}

.score-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 20;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot-label {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.dot-blue { background-color: #2196F3 !important; }
.dot-pink { background-color: #ff6699 !important; }

.radius-info-text {
    position: absolute;
    bottom: -24px; 
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
}

/* --- 3. BUTTON-STEUERUNG --- */
#app-container .search-action-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 20px auto 100px auto !important;
}

#app-container .search-nav-row {
    display: flex !important;
    gap: 15px !important;
    width: 100% !important;
}

#app-container .auth-button.btn-search-nav {
    flex: 1 !important;
    width: auto !important; 
    margin: 0 !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    outline: none !important;
    cursor: pointer;
}

#app-container .auth-button#prev-btn { background-color: #f1f3f5 !important; color: #546e7a !important; }
#app-container .auth-button#skip-btn { background-color: var(--accent-green) !important; color: white !important; }

#app-container .auth-button.btn-fav-main {
    width: 100% !important;
    margin-top: 5px !important;
    background-color: var(--accent-green) !important;
    height: 70px !important;
    font-size: 18px !important;
    border: 0 !important;
}

/* --- 4. RESPONSIVE ANPASSUNGEN --- */
@media (max-width: 768px) {
    .search-card-fokus { padding: 40px 20px; }
    .dual-scale-container { gap: 60px; }
    .mini-ring-scale { width: 55px !important; height: 55px !important; min-width: 55px !important; }
    .dot-label { font-size: 10px; }
}