/* Shared "below the tool" content design system: icon-badged sections,
   numbered steps, use-case cards, question chips, and a FAQ accordion.
   Used across all tool pages instead of the old plain h2/p/ul layout. */

.content-redesign {
    padding: 2.5rem 2rem;
    text-align: left;
    margin-top: 2rem;
}

.content-section {
    padding: 2rem 0;
    border-bottom: 1px solid #eef0f4;
}

.content-section:first-child {
    padding-top: 0;
}

.content-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.content-section p {
    color: #495057;
    line-height: 1.7;
}

.section-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 1.2rem;
}

.steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #495057;
    line-height: 1.6;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef1ff;
    color: #667eea;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.use-case-card {
    background: #f8f9fa;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.use-case-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.use-case-card h4 {
    color: #2c3e50;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    font-size: 0.9rem;
    margin: 0;
}

.question-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.chip {
    background: #eef1ff;
    color: #4c4fa0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.accordion-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    cursor: pointer;
}

.accordion-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef1ff;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.accordion-item.open .accordion-answer {
    max-height: 300px;
}

.accordion-answer p {
    padding: 0 1.25rem 1.1rem;
    margin: 0;
    color: #495057;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.related-tool-card {
    display: block;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.2s ease;
}

.related-tool-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .content-section {
    border-color: #34495e;
}

[data-theme="dark"] .content-section h2,
[data-theme="dark"] .use-case-card h4,
[data-theme="dark"] .accordion-question {
    color: #e9ecef;
}

[data-theme="dark"] .content-section p,
[data-theme="dark"] .use-case-card p,
[data-theme="dark"] .accordion-answer p {
    color: #bdc3c7;
}

[data-theme="dark"] .use-case-card,
[data-theme="dark"] .accordion-item {
    background: #2c3e50;
    border-color: #34495e;
}

[data-theme="dark"] .chip {
    background: #34495e;
    color: #a3b1ff;
}

[data-theme="dark"] .step-num,
[data-theme="dark"] .accordion-icon {
    background: #34495e;
    color: #a3b1ff;
}

[data-theme="dark"] .related-tool-card {
    background: #2c3e50;
    border-color: #34495e;
    color: #e9ecef;
}

@media (max-width: 480px) {
    .content-redesign {
        padding: 1.5rem 1.25rem;
    }

    .content-section h2 {
        font-size: 1.2rem;
    }
}
