/* Help Article Template Styles */
/* Use this for all individual help center article pages */

/* Article Hero - Centered layout */
.article-hero {
    padding: 120px 0 48px;
    text-align: center;
}

.article-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.article-hero .breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.article-hero .breadcrumb a:hover {
    color: var(--accent-blue);
}

.article-hero .breadcrumb span {
    color: var(--text-muted);
}

.article-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-hero .intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Article Content */
.help-article {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.article-section {
    margin-bottom: 48px;
}

.article-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.article-section p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.article-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    display: block;
}

/* Steps Box */
.steps-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.steps-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.steps-box-header svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue, #3b82f6);
}

.steps-box-header span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Numbered Steps List */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.steps-list li {
    position: relative;
    padding-left: 56px;
    padding-bottom: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 2px solid var(--border-color);
    margin-left: 16px;
}

.steps-list li:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -18px;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.steps-list li ul {
    margin-top: 12px;
    list-style: disc;
    padding-left: 20px;
}

.steps-list li ul li {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    padding-bottom: 6px;
}

.steps-list li ul li::before {
    display: none;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.info-box svg {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Tip Box */
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.tip-box svg {
    width: 24px;
    height: 24px;
    stroke: #22c55e;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.warning-box svg {
    width: 24px;
    height: 24px;
    stroke: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Success Box */
.success-box {
    padding: 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.success-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-box ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 0;
}

.success-box ul li::before {
    display: none;
}

.success-box ul li svg {
    width: 18px;
    height: 18px;
    stroke: #22c55e;
}

/* Example Box */
.example-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.example-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.example-label svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.example-box blockquote {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid var(--accent-blue);
    font-style: italic;
}

/* Timeline Box */
.timeline-box {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.timeline-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-box ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.timeline-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
}

/* Duration/Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.checklist li::before {
    display: none;
}

.checklist li svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    stroke: var(--accent-blue, #3b82f6);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 2px;
    display: block;
}

/* Flow Visual */
.flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.flow-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    text-align: center;
}

.flow-box svg {
    width: 28px;
    height: 28px;
}

.flow-box span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* FAQ Accordion */
.service-faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.service-faq-item {
    border-bottom: 1px solid var(--border-color);
}

.service-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.service-faq-question:hover {
    color: #3b82f6;
}

.service-faq-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-faq-item.active .service-faq-icon {
    transform: rotate(180deg);
}

.service-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.service-faq-item.active .service-faq-answer {
    max-height: 500px;
}

.service-faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    padding: 0 24px 24px 24px;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Template Cards */
.templates-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.template-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.template-card:hover {
    border-color: var(--accent-blue);
}

.template-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.template-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue, #3b82f6);
}

.template-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.template-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Component Cards */
.component-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.component-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.component-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-icon svg {
    width: 24px;
    height: 24px;
}

.component-icon.blue svg {
    stroke: #3b82f6;
}

.component-icon.purple svg {
    stroke: #8b5cf6;
}

.component-icon.green svg {
    stroke: #22c55e;
}

.component-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.component-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Formula Display */
.formula-display {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.formula-parts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.formula-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.formula-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.formula-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.formula-operator {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-blue);
}

.formula-result .formula-value {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
}

/* Example Calculator */
.example-calc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 24px 0;
}

.example-calc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.example-calc-header svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue, #3b82f6);
}

.example-calc-header span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.example-calc-body {
    padding: 24px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.calc-row .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.calc-row.subtotal {
    padding-top: 16px;
    margin-top: 8px;
}

.calc-row.subtotal .label {
    font-weight: 500;
    color: var(--text-primary);
}

.calc-row.total {
    background: rgba(59, 130, 246, 0.1);
    margin: 16px -24px -24px;
    padding: 20px 24px;
}

.calc-row.total .label {
    font-weight: 600;
    color: var(--text-primary);
}

.calc-row.total .value {
    font-size: 20px;
    color: var(--accent-blue);
}

.calc-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.calc-tag.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.calc-tag.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.calc-tag.green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* Size Table */
.size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.size-table th,
.size-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
}

.size-table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.size-table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.size-table tr:last-child td {
    border-bottom: none;
}

/* Customer Flow */
.customer-flow {
    margin: 24px 0;
}

.customer-flow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.customer-flow-header svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue, #3b82f6);
}

.customer-flow-header span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.customer-flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
}

.customer-flow-steps>* {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.customer-flow-steps .flow-arrow {
    color: var(--text-muted);
    font-size: 20px;
    margin-top: -20px;
    flex-shrink: 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    flex: 1;
    padding: 0;
    background: transparent;
    border: none;
}

.flow-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.flow-step span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tip Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.tip-item svg {
    width: 20px;
    height: 20px;
    stroke: #22c55e;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Key Points Grid */
.key-points {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.key-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.key-point svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-blue, #3b82f6);
    flex-shrink: 0;
    margin-top: 2px;
}

.key-point p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 700px) {
    .article-hero {
        padding: 100px 0 32px;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .article-hero .intro {
        font-size: 16px;
    }

    .flow-visual {
        flex-wrap: wrap;
    }

    .formula-parts {
        flex-direction: column;
        gap: 8px;
    }

    .formula-operator {
        font-size: 20px;
    }

    .formula-value {
        font-size: 18px;
        padding: 10px 16px;
    }

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

    .customer-flow-steps {
        flex-direction: column;
    }

    .data-table th,
    .data-table td,
    .size-table th,
    .size-table td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .article-nav {
        flex-direction: column;
        gap: 12px;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }
}