/* ==================== TUTORIAL PAGE STYLES ==================== */
.tutorial-article {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb-item::after {
    content: '/';
    margin-left: 8px;
    color: var(--gray-400);
}

.breadcrumb-item a {
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-current {
    color: var(--primary-dark);
    font-weight: 500;
}

/* ==================== TUTORIAL HERO ==================== */
.tutorial-hero {
    padding: 48px 0 0;
}

.tutorial-header {
    margin-bottom: 48px;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.meta-date,
.meta-read-time,
.meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tutorial-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .tutorial-title {
        font-size: 1.75rem;
    }
}

.tutorial-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 32px;
    padding: 24px;
    background-color: var(--primary-50);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
}

/* ==================== AUTHOR CARD ==================== */
.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

.author-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--gray-900);
}

.author-bio {
    font-size: 0.813rem;
    color: var(--gray-600);
    margin-top: 4px;
    line-height: 1.5;
}

/* ==================== TABLE OF CONTENTS ==================== */
.tutorial-toc-wrapper {
    margin-bottom: 48px;
}

.tutorial-toc {
    background-color: var(--primary-50);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--primary-200);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.toc-list {
    counter-reset: toc;
}

.toc-list li {
    padding: 6px 0;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

.toc-list li::before {
    counter-increment: toc;
    content: counter(toc) ".";
    color: var(--primary);
    margin-right: 8px;
}

.toc-list li a {
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

.toc-list li a:hover {
    color: var(--primary);
}

.toc-list ol {
    counter-reset: nested-toc;
    padding-left: 32px;
}

.toc-list ol li {
    font-size: 0.938rem;
    color: var(--gray-600);
    padding: 4px 0;
}

.toc-list ol li::before {
    counter-increment: nested-toc;
    content: counter(toc) "." counter(nested-toc) " ";
}

/* ==================== TUTORIAL SECTIONS ==================== */
.tutorial-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
}

.tutorial-section-alt {
    background-color: var(--gray-50);
}

.tutorial-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .tutorial-section-title {
        font-size: 1.5rem;
    }
}

.tutorial-section-intro {
    font-size: 1.063rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.063rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==================== COMPARISON TABLE ==================== */
.comparison-wrapper {
    overflow-x: auto;
    margin: 32px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.comparison-table thead th {
    padding: 24px;
    background-color: var(--primary-50);
    text-align: left;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    vertical-align: top;
}

.comparison-col {
    min-width: 280px;
}

.comparison-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.comparison-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-top: 8px;
}

.comparison-table tbody tr {
    border-top: 1px solid var(--gray-200);
}

.comparison-table tbody tr:first-child {
    border-top: none;
}

.comparison-table .item-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    display: block;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
    list-style: none;
}

.item-list li {
    position: relative;
    padding-left: 24px;
    color: var(--gray-700);
    font-size: 0.938rem;
}

.item-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2325D366'%3E%3Cpath d='M9 0L3.5 6H6V12H12V6H14.5L9 0Z'/></svg>");
}

.comparison-recommendation-row {
    background-color: var(--primary-50);
}

.recommendation-badge {
    padding: 8px 16px;
    background-color: var(--primary-100);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-weight: 500;
}

/* ==================== TUTORIAL STEPS ==================== */
.tutorial-step {
    margin-bottom: 48px;
    padding-top: 32px;
}

.step-indicator {
    width: 56px;
    height: 56px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
}

.step-content-wrapper {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .step-content-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.tutorial-step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .tutorial-step-title {
        font-size: 1.5rem;
    }
}

.tutorial-step-desc {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== INSTRUCTION LIST ==================== */
.instruction-list {
    counter-reset: instruction;
    list-style: none;
}

.instruction-list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.instruction-list li:last-child {
    border-bottom: none;
}

.instruction-number {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.instruction-text strong {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 4px;
}

.instruction-text p {
    color: var(--gray-600);
    font-size: 0.938rem;
    line-height: 1.6;
}

.instruction-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background-color: var(--primary-50);
    border-radius: var(--radius-md);
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

/* ==================== FEATURE GRID ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.tutorial-feature-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    transition: all var(--transition-base);
}

.feature-icon {
    margin-bottom: 12px;
    width: 48px;
    height: 48px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.tutorial-feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ==================== TUTORIAL IMAGES ==================== */
.tutorial-image {
    margin: 32px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--gray-100);
}

.tutorial-image .img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
}

/* ==================== TABS ==================== */
.method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.method-tab {
    padding: 8px 20px;
    background-color: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.method-tab.active {
    background-color: var(--primary);
    color: var(--white);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ==================== SECURITY NOTE ==================== */
.security-note {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: #fffaf0;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.security-note strong {
    color: #92400e;
    display: block;
}

.security-note p {
    color: #a16b0a;
    font-size: 0.938rem;
    margin-top: 4px;
}

/* ==================== DOWNLOAD CARDS ==================== */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.download-card {
    padding: 24px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.download-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.download-card-desc {
    font-size: 0.938rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.download-card .btn {
    width: 100%;
}

/* ==================== DESKTOP FEATURES ==================== */
.desktop-features {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.desktop-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.desktop-feature .feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-left: 12px;
}

.desktop-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.desktop-feature p {
    font-size: 0.938rem;
    color: var(--gray-600);
}

/* ==================== LOGOUT METHODS ==================== */
.logout-methods {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.logout-method {
    padding: 20px;
    background-color: var(--primary-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.logout-method h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.logout-method p {
    color: var(--gray-700);
    font-size: 0.938rem;
    line-height: 1.6;
}

/* ==================== TIPS GRID ==================== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tip-card {
    padding: 24px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.tip-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tip-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tip-desc {
    font-size: 0.938rem;
    color: var(--gray-600);
}

/* ==================== FAQ SECTION ==================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--primary-50);
}

.faq-question[aria-expanded="true"] {
    background-color: var(--primary);
}

.faq-question-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.faq-icon {
    transition: transform var(--transition-base);
    color: var(--gray-500);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--white);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-answer.open {
    padding: 20px 24px;
    max-height: none;
}

.faq-answer p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* ==================== RELATED RESOURCES ==================== */
.tutorial-related {
    padding: 48px 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 48px;
}

.related-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    padding: 24px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.related-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.related-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.related-desc {
    font-size: 0.938rem;
    color: var(--gray-600);
}

/* ==================== RESPONSIVE TUTORIAL ==================== */
@media (max-width: 768px) {
    .tutorial-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
}

/* ==================== ANIMATION ON SCROLL ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== TUTORIAL IMAGES ==================== */
.tutorial-images {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tutorial-image figcaption {
    text-align: center;
    padding: 16px;
    font-size: 0.875rem;
    color: var(--gray-600);
    background-color: var(--gray-100);
}

.tutorial-note {
    padding: 16px 20px;
    background-color: var(--primary-50);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    margin-top: 24px;
    font-size: 0.938rem;
    color: var(--primary-800);
    line-height: 1.6;
}