/* ==================== DOCS CONTENT STYLES ==================== */
/* Article and Documentation Content Styling */

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--docs-text-secondary);
    text-decoration: none;
    transition: color var(--docs-transition-fast);
}

.breadcrumb a:hover {
    color: var(--docs-accent-light);
}

.breadcrumb .separator {
    color: var(--docs-text-muted);
}

.breadcrumb span:last-child {
    color: var(--docs-text-primary);
    font-weight: 500;
}

/* ==================== ARTICLE LAYOUT ==================== */
.doc-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--docs-border);
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--docs-text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.article-lead {
    font-size: 16px;
    color: var(--docs-text-secondary);
    line-height: 1.6;
}

/* ==================== TABLE OF CONTENTS ==================== */
.toc {
    background: var(--docs-bg-secondary);
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.toc h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--docs-text-muted);
    margin-bottom: 12px;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc li:last-child {
    margin-bottom: 0;
}

.toc a {
    color: var(--docs-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--docs-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toc a:hover {
    color: var(--docs-accent-light);
    transform: translateX(4px);
}

.toc a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--docs-border-light);
    border-radius: 50%;
    transition: background var(--docs-transition-fast);
}

.toc a:hover::before {
    background: var(--docs-accent);
}

/* ==================== CONTENT SECTIONS ==================== */
.doc-article section {
    margin-bottom: 48px;
}

.doc-article section:last-child {
    margin-bottom: 0;
}

.doc-article h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--docs-text-primary);
    margin-bottom: 16px;
    padding-top: 8px;
}

.doc-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 12px;
}

.doc-article h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 8px;
}

.doc-article p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--docs-text-secondary);
    margin-bottom: 16px;
}

.doc-article p:last-child {
    margin-bottom: 0;
}

.doc-article a {
    color: var(--docs-accent-light);
    text-decoration: none;
    transition: color var(--docs-transition-fast);
}

.doc-article a:hover {
    color: var(--docs-accent);
    text-decoration: underline;
}

/* ==================== FEATURE LIST ==================== */
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--docs-border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--docs-accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--docs-accent);
}

.feature-list strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 4px;
}

.feature-list p {
    margin: 0;
    font-size: 14px;
    color: var(--docs-text-secondary);
}

/* ==================== STEPS ==================== */
.steps {
    margin: 24px 0;
}

.step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: var(--docs-border);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--docs-accent);
    color: var(--docs-bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.step-content h4 {
    margin-bottom: 4px;
    color: var(--docs-text-primary);
}

.step-content p {
    margin: 0;
    font-size: 14px;
    color: var(--docs-text-secondary);
}

/* ==================== INFO BOX ==================== */
.info-box {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--docs-accent-dim);
    border: 1px solid rgba(var(--docs-accent-rgb), 0.2);
    border-radius: 10px;
    margin: 24px 0;
}

.info-box svg {
    width: 24px;
    height: 24px;
    fill: var(--docs-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--docs-accent-light);
    margin-bottom: 4px;
}

.info-box p {
    margin: 0;
    font-size: 13px;
    color: var(--docs-text-secondary);
}

/* Warning box variant */
.warning-box {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    margin: 24px 0;
}

.warning-box svg {
    width: 24px;
    height: 24px;
    fill: #fbbf24;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 4px;
}

.warning-box p {
    margin: 0;
    font-size: 13px;
    color: var(--docs-text-secondary);
}

/* ==================== CARD GRID ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-card {
    background: var(--docs-bg-secondary);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    padding: 16px;
}

.info-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 13px;
    color: var(--docs-text-secondary);
    margin: 0;
}

/* ==================== FEEDBACK COMPONENTS ==================== */
.feedback-components {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.feedback-item {
    background: var(--docs-bg-secondary);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    padding: 16px;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.feedback-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.feedback-badge.score {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.feedback-badge.strengths {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.feedback-badge.improvements {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.feedback-badge.model {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.feedback-item h4 {
    margin: 0;
    font-size: 14px;
}

.feedback-item p {
    margin: 0;
    font-size: 13px;
    color: var(--docs-text-secondary);
}

/* ==================== NEXT LINKS ==================== */
.next-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.next-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--docs-bg-secondary);
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--docs-transition-fast);
}

.next-link:hover {
    border-color: var(--docs-accent);
    background: var(--docs-bg-tertiary);
    transform: translateX(4px);
    text-decoration: none;
}

.next-link-icon {
    width: 44px;
    height: 44px;
    background: var(--docs-accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.next-link-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--docs-accent);
}

.next-link h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin-bottom: 2px;
}

.next-link p {
    font-size: 13px;
    color: var(--docs-text-muted);
    margin: 0;
}

.next-link .arrow {
    width: 20px;
    height: 20px;
    fill: var(--docs-text-muted);
    margin-left: auto;
    flex-shrink: 0;
    transition: all var(--docs-transition-fast);
}

.next-link:hover .arrow {
    fill: var(--docs-accent);
    transform: translateX(4px);
}

/* ==================== FAQ STYLES ==================== */
.faq-list {
    margin: 24px 0;
}

.faq-item {
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--docs-bg-secondary);
    cursor: pointer;
    transition: background var(--docs-transition-fast);
}

.faq-question:hover {
    background: var(--docs-bg-tertiary);
}

.faq-question h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--docs-text-primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    fill: var(--docs-text-muted);
    transition: transform var(--docs-transition-fast);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--docs-transition-normal);
}

.faq-item.open .faq-answer {
    padding: 16px 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    color: var(--docs-text-secondary);
}

/* ==================== CODE BLOCKS ==================== */
.code-block {
    background: var(--docs-bg-primary);
    border: 1px solid var(--docs-border);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--docs-text-primary);
    line-height: 1.5;
}

/* Inline code */
.doc-article code {
    background: var(--docs-bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--docs-accent-light);
}

/* ==================== TABLES ==================== */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.doc-table th,
.doc-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--docs-border);
}

.doc-table th {
    background: var(--docs-bg-secondary);
    font-weight: 600;
    color: var(--docs-text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.doc-table td {
    color: var(--docs-text-secondary);
}

.doc-table tr:hover td {
    background: var(--docs-bg-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 26px;
    }

    .doc-article h2 {
        font-size: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .feature-list li {
        flex-direction: column;
        gap: 12px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .next-link {
        flex-wrap: wrap;
    }

    .next-link .arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .toc {
        padding: 16px;
    }

    .step {
        gap: 12px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step:not(:last-child)::after {
        left: 15px;
    }
}
