/* Tutorial Modal */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    transition: all 0.3s ease;
}

.tutorial-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.tutorial-content {
    background: var(--bg-window);
    border: 2px solid var(--border-neon);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(180, 0, 255, 0.5);
    position: relative;
    animation: slideIn 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.tutorial-content::-webkit-scrollbar {
    width: 8px;
}

.tutorial-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 12px 12px 0;
}

.tutorial-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.tutorial-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tutorial-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background: rgba(255, 0, 128, 0.2);
    border: 2px solid #ff0080;
    border-radius: 50%;
    color: #ff0080;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.tutorial-close:hover {
    background: rgba(255, 0, 128, 0.4);
    transform: rotate(90deg) scale(1.1);
    border-color: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

.tutorial-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(180, 0, 255, 0.1), rgba(255, 0, 255, 0.05));
    flex-shrink: 0;
}

.tutorial-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s infinite;
}

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

.tutorial-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.tutorial-body {
    padding: 30px;
    flex: 0 0 auto;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.tutorial-step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(180, 0, 255, 0.2);
    transform: translateX(5px);
}

.tutorial-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(180, 0, 255, 0.5);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 0 8px 0;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.tutorial-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.7; transform: translateY(-50%) translateX(5px); }
}

.tutorial-step:last-child .tutorial-arrow {
    display: none;
}

.tutorial-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.tutorial-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.tutorial-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.tutorial-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(180, 0, 255, 0.4);
}

.tutorial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 0, 255, 0.6);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    background: var(--bg-window);
    border: 2px solid var(--border-neon);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(180, 0, 255, 0.4);
    z-index: 4000;
    transition: all 0.3s ease;
}

.cookie-consent.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.cookie-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #ff8800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(180, 0, 255, 0.3);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 0, 255, 0.5);
}

.cookie-btn.reject {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-content {
        width: 95%;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        padding-bottom: 20px;
    }
    
    .tutorial-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 8px;
        right: 8px;
    }
    
    .tutorial-header {
        padding: 50px 20px 15px;
    }
    
    .tutorial-header i {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .tutorial-header h2 {
        font-size: 1.3rem;
    }
    
    .tutorial-body {
        padding: 10px 15px;
        flex: 0 0 auto;
    }
    
    .tutorial-step {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .tutorial-arrow {
        display: none;
    }
    
    .tutorial-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 20px;
    }
    
    .tutorial-btn {
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
