/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Tutorial Spotlight */
.tutorial-spotlight {
    position: absolute;
    background: transparent;
    border: 3px solid rgba(116, 185, 255, 0.9);
    border-radius: 12px;
    box-shadow: 
        0 0 0 9999px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(116, 185, 255, 0.6),
        inset 0 0 30px rgba(116, 185, 255, 0.2);
    z-index: 100001;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 0 9999px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(116, 185, 255, 0.6),
            inset 0 0 30px rgba(116, 185, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 0 9999px rgba(0, 0, 0, 0.35),
            0 0 40px rgba(116, 185, 255, 0.8),
            inset 0 0 40px rgba(116, 185, 255, 0.3);
    }
}

/* Tutorial Tooltip */
.tutorial-tooltip {
    position: fixed;
    max-width: 450px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 16px;
    padding: 0;
    z-index: 100002;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(116, 185, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(116, 185, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tutorial-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.tutorial-content {
    padding: 1rem 1.5rem 1.5rem;
}

.tutorial-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tutorial-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 16px 16px;
}

.tutorial-progress {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.tutorial-buttons {
    display: flex;
    gap: 0.5rem;
}

.tutorial-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tutorial-btn-primary {
    background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.tutorial-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
}

.tutorial-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Help Button */
.tutorial-help-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(116, 185, 255, 0.3),
        0 0 20px rgba(116, 185, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
    animation: helpButtonFloat 3s ease-in-out infinite;
}

.tutorial-help-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(116, 185, 255, 0.4),
        0 0 30px rgba(116, 185, 255, 0.3);
}

.tutorial-help-button svg {
    width: 28px;
    height: 28px;
}

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

/* Completion Message */
.tutorial-completion-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(74, 222, 128, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 100003;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 400px;
}

.tutorial-completion-content h3 {
    margin: 0 0 0.5rem;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.tutorial-completion-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
        transform: none !important;
    }
    
    .tutorial-help-button {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
    
    .tutorial-help-button svg {
        width: 24px;
        height: 24px;
    }
    
    .tutorial-completion-message {
        max-width: calc(100vw - 2rem);
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .tutorial-header h3 {
        font-size: 1.1rem;
    }
    
    .tutorial-content p {
        font-size: 0.9rem;
    }
    
    .tutorial-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}
