/**
 * Tool Content Styles
 * Styles for common uses and FAQ sections
 */

.tool-content-section,
.tool-faq-section {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: var(--card-bg-color, #ffffff);
    border: 1px solid var(--card-border-color, #e9ecef);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tool-content-section h2,
.tool-faq-section h2 {
    color: var(--primary-color, #001C55);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color, #001C55);
}

/* Common Uses Section */
.common-uses {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color, #212529);
    margin: 0;
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(0, 28, 85, 0.03);
    border: 1px solid var(--card-border-color, #e9ecef);
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color, #001C55);
    box-shadow: 0 2px 8px rgba(0, 28, 85, 0.1);
}

.faq-item[open] {
    background: var(--card-bg-color, #ffffff);
    border-color: var(--primary-color, #001C55);
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color, #001C55);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color, #001C55);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-question:hover {
    color: var(--primary-color, #001C55);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color, #212529);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode */
[data-theme="dark"] .tool-content-section,
[data-theme="dark"] .tool-faq-section {
    background: var(--card-bg-color, #1A1F2E);
    border-color: var(--card-border-color, #1F2937);
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--card-border-color, #1F2937);
}

[data-theme="dark"] .faq-item[open] {
    background: var(--card-bg-color, #1A1F2E);
}

/* Responsive */
@media (max-width: 768px) {
    .tool-content-section,
    .tool-faq-section {
        padding: 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .tool-content-section h2,
    .tool-faq-section h2 {
        font-size: 1.3rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .tool-content-section,
    .tool-faq-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .faq-item {
        page-break-inside: avoid;
    }

    .faq-item[open] {
        border: 1px solid #000;
    }
}
