/* =========================
   User Guide Page Styles
   ========================= */

/* Guide Page Layout */
.guide-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

/* Header */
.guide-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.guide-header-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-header-icon i {
    font-size: 32px;
    color: white;
}

.guide-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.guide-header p {
    font-size: var(--font-size-md);
    color: var(--gray-500);
}

/* Flow Overview (horizontal step bar) */
.guide-flow-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.flow-step-mini {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    font-weight: 500;
}

.flow-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-step-dot i {
    font-size: 12px;
    color: white;
}

.flow-step-arrow {
    color: var(--gray-300);
    font-size: 10px;
    margin: 0 2px;
}

/* Steps Detail */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-2xl);
}

/* Step Card */
.guide-step-card {
    display: flex;
    gap: var(--space-lg);
}

.guide-step-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}

.guide-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-step-number span {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: white;
}

.guide-step-line {
    flex: 1;
    width: 2px;
    background: var(--gray-200);
    min-height: 20px;
}

.guide-step-card:last-child .guide-step-line {
    display: none;
}

/* Step Body */
.guide-step-body {
    flex: 1;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    transition: box-shadow var(--transition-fast);
}

.guide-step-body:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.guide-step-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.guide-step-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.guide-step-header h3 {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.guide-step-header p {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin: 0;
}

/* Step Details */
.guide-step-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-md);
}

.guide-step-details ul li {
    position: relative;
    padding: var(--space-xs) 0 var(--space-xs) var(--space-xl);
    color: var(--gray-600);
    line-height: 1.7;
    font-size: var(--font-size-sm);
}

.guide-step-details ul li::before {
    content: '→';
    position: absolute;
    left: 4px;
    color: var(--primary-blue);
    font-weight: 600;
}

.guide-step-details ul li a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.guide-step-details ul li a:hover {
    text-decoration: underline;
}

.guide-step-details ul li code {
    background: var(--gray-100);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--gray-700);
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* Tip Box */
.guide-step-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid #F59E0B;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    line-height: 1.6;
}

.guide-step-tip i {
    color: #F59E0B;
    margin-top: 2px;
    flex-shrink: 0;
}

.guide-step-tip code {
    background: rgba(251, 191, 36, 0.15);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* CTA Section */
.guide-cta {
    margin-bottom: var(--space-2xl);
}

.guide-cta-card {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: var(--radius-lg);
}

.guide-cta-card > i {
    font-size: 40px;
    color: #7C3AED;
    margin-bottom: var(--space-md);
}

.guide-cta-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.guide-cta-card p {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.guide-cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.guide-faq {
    margin-bottom: var(--space-xl);
}

.guide-faq h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.guide-faq h2 i {
    color: var(--primary-blue);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
}

.faq-item p {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-page {
        padding: var(--space-lg) var(--space-md);
    }

    .guide-flow-overview {
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .flow-step-mini span {
        display: none;
    }

    .flow-step-arrow {
        display: none;
    }

    .guide-step-aside {
        display: none;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .guide-cta-card {
        padding: var(--space-lg);
    }
}
