/* ==========================================================================
   EEAT Engine Companion Styles
   Description: Premium, theme-agnostic styling for E-E-A-T blocks.
   ========================================================================== */

/* --- 1. Direct Answer (Featured Snippet Block) --- */
.eeat-direct-answer {
    background-color: #f8fafc;
    border-left: 4px solid #10b981; /* Emerald 500 */
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.eeat-direct-answer .eeat-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #10b981;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.eeat-direct-answer .eeat-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #1e293b;
    margin: 0;
    font-weight: 500;
}

/* --- 2. Editorial Note / Clinical Experience --- */
.eeat-editorial-note {
    background-color: #f0fdf4; /* Emerald 50 */
    border: 1px solid #bbf7d0; /* Emerald 200 */
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 0.75rem;
    position: relative;
}
/* Little quote icon accent */
.eeat-editorial-note::before {
    content: "“";
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: #86efac; /* Emerald 300 */
    font-family: Georgia, serif;
    line-height: 1;
}
.eeat-editorial-note .eeat-text {
    font-style: italic;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.eeat-editorial-note .eeat-attribution {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f766e; /* Teal 700 */
    margin: 0;
    text-align: right;
}

/* --- 3. Author Bio Box --- */
.eeat-author-bio {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin: 4rem 0 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.eeat-bio-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .eeat-bio-inner {
        flex-direction: row;
        align-items: flex-start;
    }
}
.eeat-bio-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
    flex-shrink: 0;
}
.eeat-bio-info {
    flex: 1;
}
.eeat-bio-name {
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}
.eeat-bio-title {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem 0 !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.eeat-bio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 1rem 0 !important;
}
.eeat-bio-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 1rem 0 0 0 !important;
    font-style: italic;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}

/* --- 4. FAQ Section --- */
.eeat-faq-section {
    margin: 3rem 0;
    border-top: 2px solid #f1f5f9;
    padding-top: 2rem;
}
.eeat-faq-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.eeat-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}
.eeat-faq-item summary {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    list-style: none; /* Hide default arrow in some browsers */
    position: relative;
    outline: none;
}
/* Custom dropdown arrow */
.eeat-faq-item summary::-webkit-details-marker {
    display: none;
}
.eeat-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #64748b;
    transition: transform 0.2s ease;
}
.eeat-faq-item[open] summary::after {
    content: "−";
    transform: translateY(-50%);
}
.eeat-faq-item summary h3 {
    margin: 0;
    font-size: 1.05rem;
    padding-right: 2rem;
}
.eeat-faq-item .eeat-answer {
    padding: 0 1.25rem 1.25rem;
    margin: 1rem 0 0 0;
    color: #475569;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

/* --- 5. Inline Images --- */
.eeat-article-image {
    margin: 2.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.eeat-article-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}
