/* Tutorial Page Styles */
.tutorial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tutorial-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tutorial-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tutorial-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Table of Contents */
.toc-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 5px solid #007bff;
}

.toc-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

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

.toc-link {
    display: block;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.toc-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.toc-link.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Tutorial Content */
.tutorial-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content {
    line-height: 1.6;
    color: #555;
}

/* Code Blocks */
.code-block {
    background: var(--realmify-dark-bg);
    border: 1px solid var(--realmify-border-dark);
    color: var(--realmify-text-primary);
    border-radius: var(--realmify-radius);
    padding: var(--realmify-spacing-md);
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: var(--realmify-shadow-card);
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    color: var(--realmify-text-primary);
}

.code-block code {
    color: var(--realmify-text-primary);
    background: none;
    padding: 0;
}

/* Inline Code */
code {
    background: var(--realmify-deep-grid-gray);
    border: 1px solid var(--realmify-border-dark);
    color: var(--realmify-voxel-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li::before {
    content: "✅";
    font-size: 1.2em;
}

/* Info and Warning Boxes */
.info-box, .warning-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.warning-box {
    background: #fff3cd;
    border-color: #ffeaa7;
    border-left-color: #ffc107;
}

.info-box h3, .warning-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.info-box ul, .warning-box ul {
    margin: 0;
    padding-left: 20px;
}

/* Field Description */
.field-description {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.field-description h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.field-description ul {
    margin: 0;
    padding-left: 20px;
}

.field-description strong {
    color: #007bff;
}

/* Banner Specifications */
.banner-specs {
    background: #f0f8ff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #17a2b8;
}

.banner-specs h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.banner-specs ul {
    margin: 0;
    padding-left: 20px;
}

.banner-specs strong {
    color: #17a2b8;
}

/* Steps Container */
.steps-container {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.step-number {
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.step-content p {
    margin-bottom: 10px;
    color: #555;
}

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

/* Example Container */
.example-container {
    background: var(--realmify-deep-grid-gray);
    border: 1px solid var(--realmify-border-dark);
    border-left: 4px solid var(--realmify-arcane-teal);
    border-radius: var(--realmify-radius);
    padding: var(--realmify-spacing-md);
    margin: 20px 0;
    box-shadow: var(--realmify-shadow-card);
}

.example-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--realmify-text-primary);
    font-weight: 600;
    font-family: var(--realmify-font-heading);
}

.example-content p {
    margin-bottom: 10px;
    color: var(--realmify-text-secondary);
    line-height: 1.6;
}

.example-content strong {
    color: var(--realmify-arcane-teal);
}

.example-content ul {
    margin: 0;
    padding-left: 20px;
    color: var(--realmify-text-secondary);
}

.example-content li {
    color: var(--realmify-text-secondary);
    margin-bottom: 0.5rem;
}

/* Troubleshooting */
.troubleshooting-container {
    background: #fff5f5;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

.troubleshooting-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.problem-solution {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #dc3545;
}

.problem-solution h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #dc3545;
    font-weight: 600;
}

.problem-solution p {
    margin: 0;
    color: #555;
}

.problem-solution strong {
    color: #28a745;
}

/* Action Buttons */
.tutorial-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-container {
        padding: 10px;
    }
    
    .tutorial-header {
        padding: 30px 15px;
    }
    
    .tutorial-title {
        font-size: 2rem;
    }
    
    .tutorial-subtitle {
        font-size: 1rem;
    }
    
    .tutorial-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .toc-nav {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .tutorial-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tutorial-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 15px;
    }
    
    .step {
        padding: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .tutorial-header {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .toc-container {
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .tutorial-content {
        box-shadow: none !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .tutorial-actions {
        display: none !important;
    }
}
