/* Interactive Tutorial Styles */
.tutorial-launcher {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin: 20px 0;
}

.tutorial-hero {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
}

.tutorial-hero h2 {
    color: #ffd700;
    margin: 0 0 15px 0;
    font-size: 2em;
}

.tutorial-hero p {
    color: #ccc;
    font-size: 1.1em;
    margin: 0;
}

.tutorial-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.tutorial-card h3 {
    color: #ffd700;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.tutorial-card p {
    color: #ccc;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.tutorial-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.tutorial-features {
    margin: 30px 0;
}

.tutorial-features h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ffd700;
}

.feature-item h4 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.feature-item p {
    color: #ccc;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Tutorial Overlay Styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-box {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.tutorial-box h3 {
    color: #ffd700;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.tutorial-box p {
    color: white;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.tutorial-progress {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    background: #ffd700;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.tutorial-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

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

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.primary {
    background: #ffd700;
    color: #333;
    border-color: #ffd700;
}

.nav-btn.primary:hover {
    background: #ffed4e;
}

.tutorial-step-indicator {
    color: #ccc;
    font-size: 0.9em;
}

.close-tutorial {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5em;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-tutorial:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Highlight Effects */
.tutorial-highlight {
    position: absolute;
    border: 3px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
}

/* Tutorial Step Content */
.tutorial-step-content {
    margin: 15px 0;
}

.step-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.step-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    color: #4CAF50;
    font-size: 0.9em;
    overflow-x: auto;
}

.step-tips {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.step-tips h4 {
    color: #3498db;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.step-tips ul {
    margin: 0;
    padding-left: 20px;
}

.step-tips li {
    margin: 5px 0;
    color: #ccc;
}

.interaction-prompt {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.interaction-prompt h4 {
    color: #ffc107;
    margin: 0 0 10px 0;
}

.interaction-target {
    background: #ffd700;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    margin: 10px 0;
}

/* Progress Tracking */
.tutorial-achievements {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.tutorial-achievements h4 {
    color: #ffd700;
    margin: 0 0 15px 0;
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-badge {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.achievement-badge.locked {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.5);
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-options {
        grid-template-columns: 1fr;
    }

    .tutorial-box {
        margin: 20px;
        padding: 20px;
    }

    .tutorial-controls {
        flex-direction: column;
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}