/* Tutorial Reader Styles */
.tutorial-content {
    padding: 40px 0;
    background: #1a1a1a;
    min-height: 100vh;
}

.back-to-tutorials {
    margin-bottom: 30px;
}

.tutorial-header {
    background: #252525;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #3a3a3a;
    text-align: center;
}

.tutorial-header h1 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tutorial-header .tutorial-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tutorial-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 16px;
}

.tutorial-meta i {
    color: #4dabf7;
}

.tutorial-header .tutorial-description {
    font-size: 18px;
    color: #ccc;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

.tutorial-header .tutorial-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.tutorial-tag {
    background: rgba(77, 171, 247, 0.1);
    color: #4dabf7;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(77, 171, 247, 0.3);
}

.tutorial-body {
    background: #252525;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #3a3a3a;
}

.tutorial-intro {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
}

.tutorial-intro h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 20px;
}

.tutorial-intro p {
    font-size: 18px;
    color: #ccc;
    line-height: 1.7;
    max-width: 1200px;
}

.tutorial-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
}

.tutorial-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tutorial-section h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tutorial-section h3::before {
    content: "";
    width: 4px;
    height: 24px;
    background: #4dabf7;
    border-radius: 2px;
}

.tutorial-section p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 1200px;
}

.tutorial-section-image {
    margin: 25px 0;
    text-align: center;
}

.tutorial-section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tutorial-section-image .image-caption {
    margin-top: 10px;
    color: #888;
    font-size: 14px;
    font-style: italic;
}

.tutorial-video {
    margin: 25px 0;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.video-placeholder {
    background: linear-gradient(45deg, #0078d4, #4dabf7);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

.video-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.tutorial-conclusion {
    background: rgba(77, 171, 247, 0.05);
    border: 1px solid rgba(77, 171, 247, 0.2);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}

.tutorial-conclusion h3 {
    color: #4dabf7;
    margin-bottom: 15px;
    font-size: 22px;
}

.tutorial-conclusion p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tutorial-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-header {
        padding: 30px 20px;
    }
    
    .tutorial-header h1 {
        font-size: 32px;
    }
    
    .tutorial-body {
        padding: 30px 20px;
    }
    
    .tutorial-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .tutorial-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-container iframe,
    .video-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .tutorial-header h1 {
        font-size: 28px;
    }
    
    .tutorial-header .tutorial-description {
        font-size: 16px;
    }
    
    .tutorial-section h3 {
        font-size: 20px;
    }
    
    .tutorial-section p {
        font-size: 15px;
    }
    
    .video-container iframe,
    .video-placeholder {
        height: 250px;
    }
}

/* Loading States */
.tutorial-loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.tutorial-loading i {
    font-size: 48px;
    color: #4dabf7;
    margin-bottom: 20px;
    display: block;
}

.tutorial-loading p {
    font-size: 18px;
}

/* Error States */
.tutorial-error {
    text-align: center;
    padding: 60px 20px;
    color: #ff6b6b;
}

.tutorial-error i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.tutorial-error h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.tutorial-error p {
    color: #888;
    margin-bottom: 25px;
}

/* Table of Contents */
.tutorial-toc {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #3a3a3a;
}

.tutorial-toc h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: #4dabf7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: #ffffff;
}

.toc-list a i {
    font-size: 12px;
    opacity: 0.7;
}

/* Progress Bar */
.tutorial-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2d2d2d;
    z-index: 1000;
}

.tutorial-progress-bar {
    height: 100%;
    background: #4dabf7;
    width: 0%;
    transition: width 0.3s ease;
}
