/* ═══════════════════════════════════════════════
   Forex Article Header — forex-article-header.css
   Version 2.0.0 — forexdailyinfo.com dark theme
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Sora:wght@600;700&display=swap');

/* ── Wrapper ── */
.fah-wrapper {
    margin-bottom: 2rem;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Breadcrumbs ── */
.fah-breadcrumbs {
    margin-bottom: 14px;
}

.page .fah-breadcrumbs {
    margin-bottom: 8px;
}

.fah-breadcrumbs .rank-math-breadcrumb,
.fah-breadcrumbs .rank-math-breadcrumb p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    font-size: 11.5px;
    color: #3d4d5d;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.fah-breadcrumbs .rank-math-breadcrumb a {
    color: #8899aa;
    text-decoration: none;
    transition: color 0.15s;
}

.fah-breadcrumbs .rank-math-breadcrumb a:hover {
    color: #E8B84B;
    text-decoration: none;
}

.fah-breadcrumbs .rank-math-breadcrumb .separator {
    color: #2a3545;
    margin: 0 1px;
}

.fah-breadcrumbs .rank-math-breadcrumb span:last-child {
    color: #3d4d5d;
}

/* ── Badge row ── */
.fah-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
}

/* ── Category Badge ── */
.fah-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(232, 184, 75, 0.09);
    border: 1px solid rgba(232, 184, 75, 0.28);
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 10.5px;
    font-weight: 700;
    color: #E8B84B;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s;
}

.fah-category-badge:hover {
    background: rgba(232, 184, 75, 0.15);
    color: #E8B84B;
    text-decoration: none;
}

.fah-badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E8B84B;
    flex-shrink: 0;
    animation: fah-blink 2.5s ease-in-out infinite;
}

@keyframes fah-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── Traders Choice Badge ── */
.fah-traders-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0a1020;
    border: 1px solid #252f3f;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 10.5px;
    font-weight: 700;
    color: #c9a845;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    line-height: 1;
}

.fah-trophy-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ── Affiliate Disclosure ── */
.fah-affiliate-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.fah-affiliate-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid #1e2a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3a4a5a;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.fah-affiliate-icon svg {
    width: 12px;
    height: 12px;
}

.fah-affiliate-icon:hover,
.fah-affiliate-icon:focus {
    border-color: #3a4a5a;
    color: #667788;
    outline: none;
}

.fah-aff-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 36px;
    width: 270px;
    background: #111827;
    border: 1px solid #1e2a3c;
    border-radius: 8px;
    padding: 14px 16px;
    z-index: 999;
}

.fah-aff-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 11px;
    width: 10px;
    height: 10px;
    background: #111827;
    border-left: 1px solid #1e2a3c;
    border-top: 1px solid #1e2a3c;
    transform: rotate(45deg);
}

.fah-affiliate-wrap:hover .fah-aff-tooltip,
.fah-affiliate-icon:focus + .fah-aff-tooltip {
    display: block;
}

.fah-aff-title {
    font-size: 10px;
    font-weight: 700;
    color: #3a4a5a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 7px;
}

.fah-aff-text {
    font-size: 12px;
    color: #667788;
    line-height: 1.65;
    margin: 0;
}

.fah-aff-text a {
    color: #E8B84B;
    text-decoration: none;
}

.fah-aff-text a:hover {
    text-decoration: underline;
}

/* ── Title ── */
.fah-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(21px, 3.6vw, 30px);
    font-weight: 700;
    color: #f0f0ec;
    line-height: 1.28;
    margin: 0 0 20px;
    padding: 0;
    letter-spacing: -0.015em;
}

/* ── Meta Card ── */
.fah-meta-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: #121620;
    border: 1px solid #182030;
    border-radius: 9px;
    margin-bottom: 0;
}

/* Avatar */
.fah-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.fah-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fah-avatar-img {
    object-fit: cover;
    border: 2px solid rgba(232, 184, 75, 0.4);
}

.fah-avatar-initial {
    background: linear-gradient(140deg, #E8B84B 0%, #bf8820 100%);
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a0e00;
    border: 2px solid rgba(232, 184, 75, 0.4);
}

.fah-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(232, 184, 75, 0.15);
    pointer-events: none;
}

/* Meta body */
.fah-meta-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.fah-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fah-author {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0d8;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s;
    line-height: 1;
}

.fah-author:hover {
    color: #E8B84B;
    text-decoration: none;
}

.fah-verified {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(232, 184, 75, 0.12);
    border: 1px solid rgba(232, 184, 75, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fah-role {
    font-size: 11px;
    color: #3a4a5a;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Dates row */
.fah-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.fah-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #667788;
    line-height: 1;
}

.fah-date strong {
    font-weight: 500;
    color: #8899aa;
}

.fah-date-sep {
    width: 1px;
    height: 13px;
    background: #182030;
    margin: 0 11px;
    flex-shrink: 0;
}

/* Updated pill */
.fah-date-updated {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #8899ab;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.fah-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #556677;
}

.fah-icon-refresh {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: currentColor;
}

/* Read time pill */
.fah-meta-right {
    flex-shrink: 0;
    margin-left: auto;
}

.fah-read-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #3a4a5a;
    padding: 4px 11px;
    background: #0d1320;
    border: 1px solid #182030;
    border-radius: 20px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ── Divider ── */
.fah-divider {
    border: none;
    border-top: 1px solid #182030;
    margin: 22px 0 0;
}

/* ── Page Header — title row ── */
.fah-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.fah-title-row .fah-title {
    margin-bottom: 0;
    flex: 1;
}

.fah-title-row .fah-affiliate-wrap {
    flex-shrink: 0;
    margin-left: 0;
    margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .fah-meta-card {
        flex-wrap: wrap;
        gap: 12px;
    }

    .fah-meta-right {
        margin-left: 0;
        width: 100%;
    }

    .fah-title {
        font-size: 20px;
    }

    .fah-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .fah-date-sep {
        display: none;
    }

    .fah-affiliate-wrap {
        margin-left: 0;
    }

    .fah-aff-tooltip {
        right: auto;
        left: 0;
        width: 220px;
    }

    .fah-aff-tooltip::before {
        right: auto;
        left: 10px;
    }
}
