/**
 * SRS Onboarding Styles
 * Algorithm Selection Modal and Tutorial Tooltips
 */

/* --- Algorithm Selection Modal --- */
.srs-algo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.srs-algo-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.srs-algo-modal {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.srs-algo-modal.visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal Header */
.srs-algo-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.srs-algo-modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.srs-algo-modal-header h2 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.srs-algo-modal-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Algorithm Options */
.srs-algo-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.srs-algo-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.srs-algo-option:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.srs-algo-option.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.srs-algo-option.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.srs-algo-option-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.srs-algo-option-content h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.srs-algo-option-content p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

.srs-algo-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srs-algo-features li {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.6;
}

.srs-algo-recommended {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.srs-algo-option.selected .srs-algo-recommended {
    display: none;
}

/* Modal Footer */
.srs-algo-modal-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.srs-algo-change-note {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
}

.srs-algo-change-note strong {
    color: #94a3b8;
}

/* --- Simple Tutorial Tooltip --- */
.srs-simple-tooltip {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    z-index: 100002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.srs-simple-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .srs-algo-modal {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .srs-algo-modal-header h2 {
        font-size: 1.25rem;
    }

    .srs-algo-modal-icon {
        font-size: 40px;
    }

    .srs-algo-option {
        padding: 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .srs-algo-option-icon {
        margin-bottom: 8px;
    }

    .srs-algo-recommended {
        position: static;
        margin-top: 8px;
    }

    .srs-algo-features {
        display: none;
    }
}

/* --- Settings Panel Integration --- */
.srs-settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.srs-settings-title {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.srs-settings-algo-toggle {
    display: flex;
    gap: 8px;
}

.srs-settings-algo-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srs-settings-algo-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.srs-settings-algo-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #f1f5f9;
}

.srs-settings-algo-btn .algo-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.srs-settings-algo-btn .algo-name {
    display: block;
    font-weight: 600;
}

.srs-settings-algo-btn .algo-desc {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}