/**
 * Cosmic Tutorial System Styles
 * Clean, modern design without emojis
 */

/* Overlay */
.cosmic-tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cosmic-tutorial-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal */
.cosmic-tutorial-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease-out;
}

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

/* Close Button */
.tutorial-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.tutorial-close svg {
    color: #fff;
    width: 20px;
    height: 20px;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Content */
.tutorial-content {
    padding: 50px 40px 30px 40px;
    color: #fff;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

.tutorial-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-step {
    text-align: center;
}

.tutorial-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.tutorial-icon svg {
    color: #667eea;
}

.tutorial-step p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-subtitle {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
    margin-top: 20px !important;
}

.tutorial-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    padding: 0;
}

.tutorial-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.tutorial-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

/* Color Legend */
.tutorial-color-legend {
    text-align: left;
    max-width: 350px;
    margin: 25px auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 10px currentColor;
}

/* Footer */
.tutorial-footer {
    padding: 20px 40px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #667eea;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

.progress-dot.completed {
    background: #2ecc71;
}

.tutorial-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-nav {
    display: flex;
    gap: 10px;
}

/* Buttons */
.tutorial-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.tutorial-btn-skip {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-btn-skip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.tutorial-btn-prev,
.tutorial-btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-width: 100px;
}

.tutorial-btn-prev:hover:not(:disabled),
.tutorial-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.tutorial-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Optional Prompt (Returning Visitors) */
.cosmic-tutorial-prompt {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 25px;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cosmic-tutorial-prompt.active {
    opacity: 1;
    transform: translateY(0);
}

.tutorial-prompt-content h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.tutorial-prompt-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tutorial-prompt-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tutorial-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.tutorial-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-btn-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cosmic-tutorial-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .tutorial-content {
        padding: 40px 25px 20px;
    }

    .tutorial-title {
        font-size: 22px;
    }

    .tutorial-icon {
        width: 60px;
        height: 60px;
    }

    .tutorial-icon svg {
        width: 32px;
        height: 32px;
    }

    .tutorial-step p {
        font-size: 14px;
    }

    .tutorial-footer {
        padding: 15px 20px 20px;
    }

    .tutorial-actions {
        flex-direction: column;
        gap: 10px;
    }

    .tutorial-nav {
        width: 100%;
        justify-content: space-between;
    }

    .tutorial-btn {
        font-size: 13px;
        padding: 10px 18px;
    }

    .tutorial-btn-skip {
        width: 100%;
    }

    .cosmic-tutorial-prompt {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .tutorial-prompt-actions {
        flex-direction: column;
    }

    .tutorial-btn-primary,
    .tutorial-btn-secondary {
        width: 100%;
    }
}

/* Scrollbar Styling */
.tutorial-content::-webkit-scrollbar {
    width: 8px;
}

.tutorial-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.tutorial-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 10px;
}

.tutorial-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}
