/**
 * SLOT MACHINE MODAL CSS
 * Styles für das "Finde passenden Partner" Slot-Machine Modal
 *
 * © 2025 Ti-age.de Alle Rechte vorbehalten.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CENTER BUTTON (in der mittleren Karte)
   ═══════════════════════════════════════════════════════════════════════════ */

.slot-machine-center-btn {
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 14px;
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    border: 2px solid #e94560;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
}

.slot-machine-center-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.5);
}

.slot-machine-center-btn .match-icon {
    font-size: 18px;
}

.slot-machine-center-btn .match-text {
    font-weight: bold;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */

.slot-machine-modal {
    border: 2px solid #e94560;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
}

.slot-phase {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BINDUNGSMUSTER AUSWAHL (Phase 1)
   ═══════════════════════════════════════════════════════════════════════════ */

.bindung-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bindung-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bindung-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.bindung-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4A90E2;
}

.bindung-btn.selected {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
}

.bindung-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.bindung-name {
    font-weight: bold;
    font-size: 13px;
}

.bindung-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

/* Start Button */
.slot-start-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slot-start-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.5);
}

.slot-start-btn:disabled {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SLOT MACHINE DISPLAY (Phase 2)
   ═══════════════════════════════════════════════════════════════════════════ */

.slot-machine-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.slot-reel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    min-width: 90px;
    transition: all 0.1s ease;
}

.slot-reel.spinning {
    animation: slotSpin 0.1s infinite;
    border-color: #e94560;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
}

@keyframes slotSpin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.slot-reel.locked {
    border-color: #00d26a;
    box-shadow: 0 0 15px rgba(0, 210, 106, 0.5);
}

.slot-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    font-weight: bold;
}

.slot-value {
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Score Display */
.slot-score-display {
    text-align: center;
    margin-bottom: 20px;
}

.slot-score-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.slot-score-value {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #00d26a 0%, #4A90E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.15s ease;
}

.slot-score-value.updating {
    transform: scale(1.1);
}

/* Progress Bar */
.slot-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.slot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e94560 0%, #00d26a 100%);
    width: 0%;
    transition: width 0.1s linear;
}

.slot-progress-text {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOP 4 ERGEBNISSE (Phase 3)
   ═══════════════════════════════════════════════════════════════════════════ */

.slot-top4-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.slot-top4-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s ease;
}

.slot-top4-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.slot-top4-item.rank-1 {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.slot-top4-item.rank-2 {
    background: rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.3);
}

.slot-top4-item.rank-3 {
    background: rgba(205, 127, 50, 0.1);
    border-color: rgba(205, 127, 50, 0.3);
}

.slot-top4-rank {
    font-size: 20px;
    font-weight: bold;
    min-width: 32px;
    text-align: center;
}

.slot-top4-rank.gold { color: #FFD700; }
.slot-top4-rank.silver { color: #C0C0C0; }
.slot-top4-rank.bronze { color: #CD7F32; }
.slot-top4-rank.fourth { color: #888; }

.slot-top4-info {
    flex: 1;
    min-width: 0;
}

.slot-top4-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.slot-top4-archetyp {
    font-weight: bold;
    color: #e94560;
    font-size: 14px;
}

.slot-top4-score {
    background: linear-gradient(135deg, #00d26a 0%, #4A90E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 16px;
}

.slot-top4-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.slot-top4-detail {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.slot-top4-apply-btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, #00d26a 0%, #00a854 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.slot-top4-apply-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 210, 106, 0.4);
}

/* Legacy - für Rückwärtskompatibilität */
.slot-result {
    background: rgba(0, 210, 106, 0.1);
    border: 2px solid rgba(0, 210, 106, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.slot-result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-result-row:last-child {
    border-bottom: none;
}

.slot-result-row.slot-result-score {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 210, 106, 0.3);
    border-bottom: none;
}

.result-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.result-value {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.slot-result-score .result-value {
    font-size: 24px;
    color: #00d26a;
}

/* Result Actions */
.slot-result-actions {
    display: flex;
    gap: 15px;
}

.slot-apply-btn,
.slot-retry-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-apply-btn {
    background: linear-gradient(135deg, #00d26a 0%, #00a854 100%);
    color: white;
}

.slot-apply-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 210, 106, 0.4);
}

.slot-retry-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slot-retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   BINDUNGSMUSTER TOOLTIP (erscheint bei Klick für 2 Sekunden)
   ═══════════════════════════════════════════════════════════════════════════ */

.bindung-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(30, 30, 50, 0.98);
    border: 2px solid #e94560;
    border-radius: 12px;
    padding: 16px 24px;
    max-width: 320px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(233, 69, 96, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    text-align: center;
}

.bindung-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.bindung-tooltip-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.bindung-tooltip-title {
    font-size: 16px;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 8px;
}

.bindung-tooltip-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 500px) {
    .bindung-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .bindung-btn {
        padding: 10px 6px;
    }

    .bindung-icon {
        font-size: 20px;
    }

    .bindung-name {
        font-size: 11px;
    }

    .bindung-desc {
        font-size: 9px;
    }

    .slot-machine-display {
        gap: 8px;
    }

    .slot-reel {
        min-width: 70px;
        padding: 8px;
    }

    .slot-value {
        font-size: 12px;
    }

    .slot-score-value {
        font-size: 36px;
    }

    /* Top 4 Liste - Mobile */
    .slot-top4-list {
        max-height: 350px;
    }

    .slot-top4-item {
        padding: 10px;
        gap: 8px;
    }

    .slot-top4-rank {
        font-size: 16px;
        min-width: 28px;
    }

    .slot-top4-archetyp {
        font-size: 13px;
    }

    .slot-top4-score {
        font-size: 14px;
    }

    .slot-top4-details {
        font-size: 10px;
    }

    .slot-top4-apply-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}
