/* ============================================
   GrimbaNews — overlay CSS
   Hand-authored (bypasses Laravel Mix).
   ============================================ */

/* Bias Badge */
.bias-badge {
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 9999px;
}
.bias-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.bias-badge--sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.bias-badge--sm .ti { width: 12px; height: 12px; }
.bias-badge--md { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.bias-badge--lg { padding: 0.75rem 1rem; font-size: 1rem; }
.bias-badge--lg .ti { width: 18px; height: 18px; }

/* Glass / translucency */
.glass-panel {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .glass-panel {
    background: rgba(20, 20, 20, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .glass-card {
    background: rgba(24, 24, 24, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
}
[data-bs-theme="dark"] .glass-card:hover {
    background: rgba(28, 28, 28, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Article Card (grid) */
.article-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    margin-bottom: 1.25rem;
}
/* When in a Bootstrap grid column, let the card fill the column height */
.row > [class*="col-"] > .article-card { height: 100%; margin-bottom: 0; }
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.article-card__image { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.article-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card__image:hover img { transform: scale(1.04); }
.article-card__content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card__title {
    font-size: 1.125rem; font-weight: 600;
    margin-bottom: 0.75rem; line-height: 1.4;
}
/* S342 — hover reveals an accent underline beneath the headline anchor.
   Subtle cinematic touch; respects prefers-reduced-motion. */
.article-card__title a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.28s cubic-bezier(.2,.8,.2,1);
}
.article-card:hover .article-card__title a {
    background-size: 100% 1.5px;
}
@media (prefers-reduced-motion: reduce) {
    .article-card__title a { transition: none; }
}
.article-card__meta {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: auto; padding-top: 0.75rem;
    font-size: 0.875rem; opacity: 0.8;
}

/* Blindspot */
.blindspot-badge {
    background: rgba(138, 43, 226, 0.15);
    color: #8a2be2;
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.blindspot-badge::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    background: #8a2be2; color: #fff;
    border-radius: 50%;
    font-size: 10px; font-weight: 700;
}

/* Diversity meter + feed balance share layout */
.diversity-meter .diversity-bar,
.feed-balance .diversity-bar { border-radius: 9999px; }

/* Comparison cards hover */
.comparison-card:hover { transform: translateY(-3px); }

/* ============================================================
   Post detail — GrimbaNews source attribution
   ============================================================ */

.grimba-post-attribution {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin: 0.25rem 0 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.grimba-post-attribution__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.grimba-post-attribution__source {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-right: auto;
}

.grimba-post-attribution__kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    font-weight: 600;
}

.grimba-post-attribution__name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}
.grimba-post-attribution__name a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.15); }
.grimba-post-attribution__name a:hover { border-color: currentColor; }

.grimba-post-attribution__ownership {
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.02);
    font-size: 0.8rem;
    font-weight: 500;
}

.grimba-post-attribution__cred {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.grimba-post-attribution__cred-bar {
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
    background: rgba(0,0,0,0.06);
}
.grimba-post-attribution__cred-bar > div { height: 100%; }

.grimba-post-attribution__blindspot-notice {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.25);
    color: #6b2bb8;
    font-size: 0.9rem;
    line-height: 1.4;
}
.grimba-post-attribution__blindspot-notice a {
    color: #6b2bb8;
    font-weight: 600;
    text-decoration: underline;
}

/* Dark-mode tweaks */
[data-bs-theme="dark"] .grimba-post-attribution {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
[data-bs-theme="dark"] .grimba-post-attribution__ownership {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

/* ============================================================
   Autres angles
   ============================================================ */

.grimba-other-angles {
    margin: 2rem 0 1rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(0,0,0,0.08);
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.grimba-other-angles__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.grimba-other-angles__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.grimba-other-angles__all {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.grimba-other-angles__card {
    display: block;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.grimba-other-angles__card:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(0,0,0,0.2);
    color: inherit;
}

.grimba-other-angles__source {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.7;
}

.grimba-other-angles__headline {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0.25rem 0 0.5rem;
}

.grimba-other-angles__desc {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
    line-height: 1.4;
}
