/* PriceONN Methodology Badge — E-E-A-T transparency block
 * Used in blog/news/deep-look templates and (in compact form) /methodology page.
 * Color tokens reused from main.css (--accent-teal, --accent-green) where possible.
 */

.priceonn-methodology-badge {
    margin: 32px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 200, 167, 0.05) 0%, rgba(56, 132, 255, 0.03) 100%);
    border: 1px solid rgba(0, 200, 167, 0.18);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    contain: layout style;
    box-shadow: 0 0 0 1px rgba(0, 200, 167, 0.06), 0 4px 24px rgba(0, 0, 0, 0.2);
}

.pmb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 200, 167, 0.15);
    min-height: 0;
}

.pmb-icon {
    font-size: 14px;
    line-height: 1;
}

.pmb-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1px;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
    /* Mixed-case display: "PriceONN Research Methodology" — preserves brand case */
    text-transform: none;
}

/* CTA button — replaces plain "Learn more →" link with a styled pill button */
.pmb-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #3b8aff;
    background: rgba(56, 132, 255, 0.08);
    border: 1px solid rgba(56, 132, 255, 0.25);
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    line-height: 1;
}

.pmb-cta:hover,
.pmb-cta:focus {
    background: rgba(56, 132, 255, 0.16);
    border-color: rgba(56, 132, 255, 0.5);
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.pmb-cta .pmb-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.pmb-cta:hover .pmb-arrow {
    transform: translateX(2px);
}

[dir="rtl"] .pmb-cta .pmb-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .pmb-cta:hover .pmb-arrow {
    transform: scaleX(-1) translateX(2px);
}

.pmb-grid {
    margin: 0;
    display: grid;
    gap: 8px;
}

.pmb-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
}

.pmb-row dt {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    /* Uppercase is done in PHP (mb_strtoupper) to avoid the Turkish i/İ
       casing quirk browsers apply on text-transform:uppercase in tr-TR locale. */
    text-transform: none;
    letter-spacing: 0.8px;
    margin: 0;
}

.pmb-row dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
}

.pmb-row strong {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    color: #00c9a7;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
}

.pmb-verified {
    color: #00c9a7;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.pmb-verified time {
    font-style: normal;
}

/* dateModified time element — mono font, subtle */
.pmb-row dd time[itemprop="dateModified"] {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    color: rgba(255, 255, 255, 0.78);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 500;
}

.pmb-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pmb-footer small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    line-height: 1.5;
}

/* RTL support (Arabic) */
[dir="rtl"] .priceonn-methodology-badge {
    text-align: right;
}

[dir="rtl"] .pmb-row {
    grid-template-columns: minmax(0, 1fr) 200px;
}

[dir="rtl"] .pmb-header {
    flex-direction: row-reverse;
}

/* Mobile: stack vertically (no fixed-width left column) */
@media (max-width: 768px) {
    .priceonn-methodology-badge {
        padding: 16px;
        margin: 24px 0;
        border-radius: 10px;
    }

    .pmb-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    [dir="rtl"] .pmb-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pmb-row dt {
        font-size: 11px;
    }

    .pmb-row dd {
        font-size: 13px;
    }

    .pmb-header {
        flex-wrap: wrap;
    }

    .pmb-learn-more {
        flex-basis: 100%;
        margin-top: 4px;
    }
}

/* ============================================================
 * COMPACT variant — sidebar widget mode (~280-300px width)
 * Replaces the wide 200px-label grid with a vertical stacked layout.
 * Smaller fonts, tighter padding, fits in right-rail style columns.
 * ============================================================ */

.priceonn-methodology-badge--compact {
    margin: 0 0 16px;
    padding: 16px 18px;
    font-size: 13px;
}

.priceonn-methodology-badge--compact .pmb-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    gap: 10px;
}

.priceonn-methodology-badge--compact .pmb-icon {
    font-size: 16px;
}

.priceonn-methodology-badge--compact .pmb-title {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.priceonn-methodology-badge--compact .pmb-grid {
    gap: 10px;
}

/* Stack label above value — no fixed-width column */
.priceonn-methodology-badge--compact .pmb-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
}

.priceonn-methodology-badge--compact .pmb-row dt {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.priceonn-methodology-badge--compact .pmb-row dd {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.priceonn-methodology-badge--compact .pmb-row strong {
    color: #00c9a7;
    font-weight: 600;
}

/* Block-style CTA button for compact (sidebar) mode — full width, centered */
.priceonn-methodology-badge--compact .pmb-cta--block {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding: 8px 12px;
    width: 100%;
    font-size: 12px;
}

/* RTL — same as base, but compact has no fixed-width column to flip */
[dir="rtl"] .priceonn-methodology-badge--compact .pmb-row {
    grid-template-columns: minmax(0, 1fr);
}

/* Print: hide */
@media print {
    .priceonn-methodology-badge {
        display: none;
    }
}

/* =====================================================================
   Cited sources row — outbound citation links (publishers + lang chips)
   ===================================================================== */
.pmb-citation-link {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #00c9a7;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.6;
}

.pmb-citation-link:hover,
.pmb-citation-link:focus-visible {
    color: #1de9b6;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Inline ' · ' separator between consecutive citation links — keeps the
   PHP template clean (no text separator interleaved with elements). */
.pmb-row--sources dd .pmb-citation-link + .pmb-citation-link::before {
    content: "·";
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: normal;
}

.pmb-lang-chip {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.72em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    letter-spacing: 0.5px;
    vertical-align: 1px;
}

.pmb-count {
    display: inline-block;
    padding: 0 4px;
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    vertical-align: 1px;
}

/* RTL support — Arabic publisher names need rtl direction so brand renders
   correctly while sitting in an LTR sentence. */
.pmb-citation-link[hreflang="ar"] {
    direction: rtl;
    unicode-bidi: isolate;
}

.pmb-more {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85em;
    margin-left: 4px;
}
