/* Tutorial Page Specific Styles */

.tutorial-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e40af 0%, #059669 100%);
    color: white;
    overflow: hidden;
}

.tutorial-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.tutorial-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.tutorial-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.tutorial-hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.tutorial-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.meta-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Table of Contents */
.table-of-contents {
    padding: 3rem 0;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.toc-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

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

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    border-radius: 6px;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
    padding-left: 1.5rem;
}

/* Tutorial Content */
.tutorial-content {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px; /* Account for fixed navbar */
}

.section-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2563eb;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2563eb, #10b981);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text h3 {
    font-size: 1.8rem;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.content-text h4 {
    font-size: 1.4rem;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}

/* Info Boxes */
.info-box, .warning-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.info-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
}

.info-icon, .warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content, .warning-content {
    flex: 1;
}

.info-content h4, .warning-content h4 {
    margin: 0 0 0.5rem;
    color: #1f2937;
}

.info-content p, .warning-content p {
    margin: 0;
    color: #374151;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.feature-item p {
    color: #6b7280;
    margin: 0;
}

/* Step by Step */
.step-by-step {
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem;
    color: #1f2937;
}

.step-content p {
    margin: 0;
    color: #6b7280;
}

/* Code Blocks */
.code-block {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: #1f2937;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.copy-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background: #4b5563;
}

.code-block pre {
    background: #f8fafc;
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-block code {
    color: #1f2937;
}

/* Inline code */
code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ef4444;
}

.security-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.security-item h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.security-item p {
    color: #6b7280;
    margin: 0;
}

/* Troubleshooting */
.troubleshooting-list {
    margin: 2rem 0;
}

.issue-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.issue-item h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.issue-item p {
    margin: 0.5rem 0;
    color: #6b7280;
}

.issue-item p strong {
    color: #1f2937;
}

/* Next Steps */
.next-steps {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    text-align: center;
}

.next-steps-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.next-steps-description {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.next-steps-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-hero-title {
        font-size: 2.5rem;
    }
    
    .tutorial-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .tutorial-hero-description {
        font-size: 1rem;
    }
    
    .tutorial-meta {
        gap: 1rem;
        justify-content: center;
    }
    
    .meta-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .toc-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .code-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .next-steps-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .tutorial-hero {
        padding: 100px 0 60px;
    }
    
    .tutorial-hero-title {
        font-size: 2rem;
    }
    
    .content-section {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .code-block pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

