/* =========================================
   TUTORIAL PAGES - Styles
   ========================================= */

/* Breadcrumb */
.breadcrumb-nav {
    padding: 20px 0;
    background: var(--bg-light);
    margin-top: var(--header-height);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li:last-child span {
    color: var(--text-main);
    font-weight: 600;
}

/* Tutorial Hero */
.tutorial-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    padding: 60px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tutorial-hero-content {
    max-width: 800px;
}

.app-badge {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tutorial-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tutorial-intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tutorial-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Table of Contents */
.toc-section {
    padding: 40px 0;
    background: white;
}

.toc-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    border: 1px solid #e5e7eb;
}

.toc-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.toc-list {
    margin: 0;
    padding-left: 25px;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: var(--primary);
}

/* Tutorial Content */
.tutorial-content {
    padding: 60px 0;
    background: white;
}

.tutorial-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.tutorial-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.tutorial-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.checklist li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
}

/* Info/Warning Boxes */
.info-box,
.warning-box {
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-size: 0.95rem;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.info-box a {
    color: #1e40af;
    text-decoration: underline;
}

.warning-box {
    background: #fefce8;
    border-left: 4px solid #eab308;
    color: #854d0e;
}

/* Step Cards */
.step-card {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.step-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
    text-align: center;
    border: 2px dashed #d1d5db;
}

.placeholder-content {
    color: var(--text-muted);
    font-size: 1rem;
}

/* URL Box */
.url-box {
    background: #1f2937;
    color: #10b981;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: monospace;
    margin: 15px 0;
    overflow-x: auto;
}

.url-box a {
    color: #10b981;
    text-decoration: none;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Problem Cards */
.problem-card {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 25px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 20px;
}

.problem-card h4 {
    color: #dc2626;
    margin-bottom: 15px;
}

.problem-card ul {
    margin: 0;
    padding-left: 20px;
}

.problem-card li {
    margin-bottom: 8px;
    color: var(--text-main);
}

.problem-card a {
    color: #dc2626;
}

/* FAQ */
.tutorial-section .faq-item {
    margin-bottom: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tutorial-section .faq-question {
    width: 100%;
    padding: 20px;
    border: none;
    background: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.tutorial-section .faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.tutorial-section .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.tutorial-section .faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.tutorial-section .faq-item.active .faq-answer {
    display: block;
}

/* CTA Card */
.tutorial-cta {
    margin: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #e67e00 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-card .btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* Related Tutorials */
.related-tutorials {
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.related-tutorials h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.related-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.related-card span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-hero h1 {
        font-size: 1.8rem;
    }

    .step-card {
        flex-direction: column;
        padding: 20px;
    }

    .tutorial-meta {
        flex-direction: column;
        gap: 10px;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }
}