/* TODO: Review box-shadow values - consider using design system shadow variables (--shadow-xs, --shadow-sm, etc.) */
/**
 * Tutorial System Styles - Sprint 2
 * Styles for interactive tutorial system
 */

/* ============================================
   TUTORIAL OVERLAY
   ============================================ */

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(5px);

.tutorial-content {
    background: var(--color-bg-card, var(--color-bg-card));
    border: 2px solid var(--color-info, #4a90e2);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.5), 0 0 0 4px rgba(74, 144, 226, 0.2);
    animation: slideUp 0.3s ease-out;

@keyframes fadeIn {
    from {
        opacity: 0;

    to {
        opacity: 1;

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;

    to {
        transform: translateY(0);
        opacity: 1;

/* ============================================
   TUTORIAL HEADER
   ============================================ */

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border, #444);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));

.tutorial-header h2 {
    margin: 0;
    color: var(--color-text-primary, var(--color-text-primary));
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 1.5rem;

.tutorial-close {
    background: transparent;
    border: none;
    color: var(--color-text-primary, var(--color-text-primary));
    font-size: 2rem;
    cursor: pointer;
    width: calc(var(--spacing-2xl) * 1.375);
    height: calc(var(--spacing-2xl) * 1.375);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;

.tutorial-close:hover,
.tutorial-close:focus {
    background: var(--color-bg-hover, #333);
    outline: 2px solid var(--color-info, #4a90e2);
    outline-offset: 2px;

/* ============================================
   TUTORIAL BODY
   ============================================ */

.tutorial-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;

.tutorial-progress {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary, var(--color-text-secondary));
    font-size: 0.875rem;

.tutorial-progress-bar {
    width: 100%;
    height: var(--spacing-sm);
    background: var(--color-bg-tertiary, #333);
    border-radius: var(--radius-xs);
    margin-top: 0.5rem;
    overflow: hidden;

.tutorial-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-info, #4a90e2), var(--color-success, #5cb85c));
    border-radius: var(--radius-xs);
    transition: width 0.3s ease-out;

.tutorial-text {
    color: var(--color-text-primary, var(--color-text-primary));
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1rem;

.tutorial-text p {
    margin-bottom: 1rem;

.tutorial-text ul,
.tutorial-text ol {
    margin-left: 2rem;
    margin-bottom: 1rem;

.tutorial-text li {
    margin-bottom: 0.5rem;

.tutorial-text strong {
    color: var(--color-info, #4a90e2);

.tutorial-image {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border: 1px solid var(--color-border, #444);

/* ============================================
   TUTORIAL FOOTER
   ============================================ */

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--color-border, #444);
    gap: 1rem;

.tutorial-nav {
    display: flex;
    gap: 0.5rem;

.tutorial-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: calc(var(--radius-sm) * 1.5);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: calc(var(--spacing-2xl) * 1.375);
    min-width: 104px;

.tutorial-btn:focus {
    outline: 2px solid var(--color-info, #4a90e2);
    outline-offset: 2px;

.tutorial-skip {
    background: transparent;
    color: var(--color-text-secondary, var(--color-text-secondary));
    border: 1px solid var(--color-border, #444);

.tutorial-skip:hover {
    background: var(--color-bg-hover, #333);
    color: var(--color-text-primary, var(--color-text-primary));

.tutorial-prev {
    background: var(--color-bg-tertiary, #333);
    color: var(--color-text-primary, var(--color-text-primary));
    border: 1px solid var(--color-border, #444);

.tutorial-prev:hover {
    background: var(--color-bg-hover, #333);
    border-color: var(--color-info, #4a90e2);

.tutorial-next,
.tutorial-complete {
    background: linear-gradient(135deg, var(--color-info, #4a90e2), var(--color-info-dark, #357abd));
    color: white;
    border: 1px solid var(--color-info, #4a90e2);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);

.tutorial-next:hover,
.tutorial-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);

.tutorial-complete {
    background: linear-gradient(135deg, var(--color-success, #5cb85c), var(--color-success-dark, #4cae4c));
    border-color: var(--color-success, #5cb85c);
    box-shadow: 0 2px 8px rgba(var(--color-success-rgb, 92, 184, 92), 0.3);

.tutorial-complete:hover {
    box-shadow: 0 4px 12px rgba(var(--color-success-rgb, 92, 184, 92), 0.4);

/* ============================================
   TUTORIAL HIGHLIGHT
   ============================================ */

.tutorial-highlight {
    position: absolute;
    border: 3px solid var(--color-info, #4a90e2);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 9999px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.5),
                0 0 20px rgba(74, 144, 226, 0.5),
                inset 0 0 20px rgba(74, 144, 226, 0.2);
    z-index: 10000;
    pointer-events: none;
    animation: highlightPulse 2s ease-in-out infinite;

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 9999px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.5),
                    0 0 20px rgba(74, 144, 226, 0.5),
                    inset 0 0 20px rgba(74, 144, 226, 0.2);

    50% {
        box-shadow: 0 0 0 9999px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.5),
                    0 0 30px rgba(74, 144, 226, 0.8),
                    inset 0 0 30px rgba(74, 144, 226, 0.4);

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .tutorial-overlay {
        padding: 1rem;

    .tutorial-content {
        max-width: 100%;
        max-height: 95vh;

    .tutorial-header {
        padding: 1rem;

    .tutorial-header h2 {
        font-size: 1.25rem;

    .tutorial-body {
        padding: 1rem;

    .tutorial-footer {
        flex-direction: column;
        padding: 1rem;

    .tutorial-skip {
        width: 100%;

    .tutorial-nav {
        width: 100%;
        justify-content: stretch;

    .tutorial-btn {
        flex: 1;

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tutorial-overlay,
    .tutorial-content,
    .tutorial-highlight {
        animation: none;

    .tutorial-highlight {
        animation: none;

/* Focus trap */
.tutorial-overlay:focus-within {
    outline: none;

}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}