/*
 * Charte graphique OccazVerif — design system du site.
 * Palette, typographie et composants de base (boutons, cartes, badges de score).
 * Même logique de couleurs prévue pour l'appli mobile plus tard (phase 2) :
 * code séparé, mais look partagé.
 */

:root {
    color-scheme: light;

    /* Marque */
    --ra-primary: #1d5c63;
    --ra-primary-dark: #164950;
    --ra-primary-light: #e4f0ef;
    --ra-accent: #ff6b4a;
    --ra-accent-dark: #e85a3a;

    /* Neutres */
    --ra-bg: #f7f7f5;
    --ra-surface: #ffffff;
    --ra-border: #e6e6e2;
    --ra-text: #1a1f1e;
    --ra-text-muted: #5b6470;

    /* Scores du moteur Prix (App\Enum\PriceLabel) */
    --ra-score-excellente: #1f9d55;
    --ra-score-bonne: #3fb27f;
    --ra-score-correcte: #6b7280;
    --ra-score-cher: #e8792f;
    --ra-score-trop-cher: #d64545;

    /* Échelle */
    --ra-radius-sm: 8px;
    --ra-radius-md: 14px;
    --ra-radius-lg: 22px;
    --ra-shadow-card: 0 2px 10px rgba(20, 40, 40, 0.06);
    --ra-shadow-lift: 0 12px 32px rgba(20, 40, 40, 0.12);
    --ra-max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ra-bg);
    color: var(--ra-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--ra-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- En-tête ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 247, 245, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ra-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--ra-primary);
    letter-spacing: -0.02em;
}

.site-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ra-primary);
    color: #fff;
    font-size: 1.1rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ra-text-muted);
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: var(--ra-primary);
}

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--ra-radius-sm);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-accent {
    background: var(--ra-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 107, 74, 0.35);
}

.btn-accent:hover {
    background: var(--ra-accent-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--ra-border);
    color: var(--ra-text);
}

.btn-outline:hover {
    border-color: var(--ra-primary);
    color: var(--ra-primary);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(155deg, var(--ra-primary) 0%, var(--ra-primary-dark) 65%, #10373c 100%);
    color: #fff;
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 107, 74, 0.35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    max-width: 720px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    font-weight: 800;
}

.hero h1 span {
    color: #ffd8cd;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 32px;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Barre de stats ---------- */

.stats-bar {
    position: relative;
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: var(--ra-max-width);
}

.stats-bar__item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--ra-radius-md);
    padding: 18px 20px;
}

.stats-bar__value {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stats-bar__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

/* ---------- Sections génériques ---------- */

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 64px 0;
}

.section-heading {
    max-width: 620px;
    margin: 0 0 48px;
}

.section-heading__kicker {
    color: var(--ra-accent-dark);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.section-heading p {
    color: var(--ra-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- Cartes ---------- */

.card {
    background: var(--ra-surface);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-lg);
    box-shadow: var(--ra-shadow-card);
    padding: 28px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ra-shadow-lift);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ra-primary-light);
    color: var(--ra-primary);
    font-weight: 800;
    margin-bottom: 18px;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.step-card p {
    margin: 0;
    color: var(--ra-text-muted);
    font-size: 0.96rem;
}

/* ---------- Badges de score (moteur Prix) ---------- */

.badge-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.badge-price::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.badge-price--excellente-affaire { background: var(--ra-score-excellente); }
.badge-price--bonne-affaire { background: var(--ra-score-bonne); }
.badge-price--prix-correct { background: var(--ra-score-correcte); }
.badge-price--cher { background: var(--ra-score-cher); }
.badge-price--trop-cher { background: var(--ra-score-trop-cher); }

.score-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Sources ---------- */

.sources-strip {
    background: var(--ra-surface);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-lg);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}

.sources-strip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--ra-primary-light);
    color: var(--ra-primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 14px;
    border-radius: 999px;
}

/* ---------- CTA bas de page ---------- */

.cta-band {
    background: var(--ra-text);
    color: #fff;
    border-radius: var(--ra-radius-lg);
    padding: 56px;
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 28px;
}

/* ---------- Pied de page ---------- */

.site-footer {
    border-top: 1px solid var(--ra-border);
    padding: 40px 0;
    margin-top: 40px;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ra-text-muted);
    font-size: 0.88rem;
}

.site-footer strong {
    color: var(--ra-text);
}

/* ---------- Formulaire de filtres (page recherche) ---------- */

.filters-form {
    margin-top: 8px;
}

.filters-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ra-text-muted);
}

.field input,
.field select {
    padding: 10px 12px;
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--ra-surface);
    color: var(--ra-text);
}

.field input:focus,
.field select:focus {
    outline: 2px solid var(--ra-primary);
    outline-offset: 1px;
}

.field--sources {
    margin-top: 18px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group__item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--ra-border);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ra-text);
    cursor: pointer;
    background: var(--ra-surface);
}

.checkbox-group__item:has(input:checked) {
    border-color: var(--ra-primary);
    background: var(--ra-primary-light);
    color: var(--ra-primary-dark);
}

.checkbox-group__item input {
    accent-color: var(--ra-primary);
}

.filters-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

/* ---------- Grille d'annonces ---------- */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.listing-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.listing-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-card__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--ra-primary-light);
    overflow: hidden;
}

.listing-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card__photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.6rem;
}

.listing-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.listing-card__body {
    padding: 18px 20px 20px;
}

.listing-card__title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card__meta {
    color: var(--ra-text-muted);
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.listing-card__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ra-primary-dark);
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
}

.pagination__status {
    color: var(--ra-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- État vide ---------- */

.empty-state {
    text-align: center;
    padding: 56px 32px;
}

.empty-state__icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    color: var(--ra-text-muted);
    margin: 0;
}

/* ---------- Page détail d'une annonce ---------- */

.back-link {
    display: inline-block;
    text-decoration: none;
    color: var(--ra-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.back-link:hover {
    color: var(--ra-primary);
}

.detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.detail-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.detail-subtitle {
    color: var(--ra-text-muted);
    font-size: 1rem;
}

.detail-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.detail-price {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ra-primary-dark);
    letter-spacing: -0.02em;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ra-radius-md);
    border: 1px solid var(--ra-border);
}

.detail-gallery--empty {
    background: var(--ra-primary-light);
    border-radius: var(--ra-radius-md);
    padding: 48px;
    text-align: center;
    color: var(--ra-primary-dark);
}

.detail-gallery--empty span {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 10px;
}

.detail-gallery--empty p {
    margin: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 24px;
    align-items: start;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.detail-subheading {
    margin: 22px 0 12px;
    font-size: 0.95rem;
    color: var(--ra-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.text-muted {
    color: var(--ra-text-muted);
    margin: 0;
}

.summary-box {
    background: var(--ra-bg);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-sm);
    padding: 16px 18px;
    margin: 0;
    line-height: 1.6;
}

.alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-item {
    border-radius: var(--ra-radius-sm);
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert-item__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
}

.alert-item--info {
    background: #eef2f6;
    border-color: #dbe3ea;
    color: #40505f;
}

.alert-item--info .alert-item__tag {
    background: #7a8a99;
    color: #fff;
}

.alert-item--warning {
    background: #fdf3e7;
    border-color: #f6dfbd;
    color: #7a4c12;
}

.alert-item--warning .alert-item__tag {
    background: var(--ra-score-cher);
    color: #fff;
}

.alert-item--danger {
    background: #fbeaea;
    border-color: #f2c9c9;
    color: #7a1f1f;
}

.alert-item--danger .alert-item__tag {
    background: var(--ra-score-trop-cher);
    color: #fff;
}

.detail-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0 0 20px;
    font-size: 0.92rem;
}

.detail-facts dt {
    color: var(--ra-text-muted);
    font-weight: 600;
}

.detail-facts dd {
    margin: 0;
}

.detail-cta {
    width: 100%;
}

/* ---------- Comparateur ---------- */

.compare-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-top: 1px solid var(--ra-border);
    background: var(--ra-surface);
    color: var(--ra-text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.compare-toggle:hover {
    background: var(--ra-primary-light);
    color: var(--ra-primary-dark);
}

.compare-toggle--active {
    background: var(--ra-primary);
    color: #fff;
    border-top-color: var(--ra-primary);
}

.compare-toggle--active:hover {
    background: var(--ra-primary-dark);
}

.detail-price-block .compare-toggle {
    width: auto;
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-sm);
    background: var(--ra-surface);
}

.detail-price-block .compare-toggle--active {
    background: var(--ra-primary);
    border-color: var(--ra-primary);
}

.compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--ra-text);
    color: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.compare-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
}

.compare-bar__info {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.compare-bar__list {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    margin-top: 2px;
}

.compare-bar__message {
    margin: 0;
    font-size: 0.85rem;
    color: #ffd8cd;
}

.compare-bar__actions {
    display: flex;
    gap: 10px;
}

.compare-bar .btn-accent:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------- Tableau de comparaison ---------- */

.compare-table-wrap {
    overflow-x: auto;
    background: var(--ra-surface);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-lg);
    box-shadow: var(--ra-shadow-card);
    padding: 8px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--ra-border);
    vertical-align: middle;
    white-space: nowrap;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table__row-label {
    color: var(--ra-text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    position: sticky;
    left: 0;
    background: var(--ra-surface);
}

.compare-table__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 180px;
    white-space: normal;
}

.compare-table__head img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ra-radius-sm);
}

.compare-table__head-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    background: var(--ra-primary-light);
    border-radius: var(--ra-radius-sm);
    font-size: 2rem;
}

.compare-table__head-title {
    font-weight: 700;
    color: var(--ra-text);
    text-decoration: none;
}

.compare-table__head-title:hover {
    color: var(--ra-primary);
}

.compare-table__price {
    font-weight: 800;
    color: var(--ra-primary-dark);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .site-nav {
        gap: 16px;
    }

    .site-nav a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 64px 0 72px;
    }

    .section {
        padding: 56px 0;
    }

    .cta-band {
        padding: 36px 24px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
    }

    .detail-price-block {
        align-items: flex-start;
    }

    .compare-bar__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .compare-bar__list {
        display: none;
    }

    .compare-bar__actions {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .site-nav {
        display: none;
    }
}

/* ---------- Admin / réseaux sociaux ---------- */

.btn-danger {
    background: transparent;
    border-color: var(--ra-score-trop-cher);
    color: var(--ra-score-trop-cher);
}

.btn-danger:hover {
    background: var(--ra-score-trop-cher);
    color: #fff;
}

.flash-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash {
    border-radius: var(--ra-radius-sm);
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.flash--success {
    background: #e9f7ee;
    border-color: #bfe6cc;
    color: #1e6b3b;
}

.flash--error {
    background: #fbeaea;
    border-color: #f2c9c9;
    color: #7a1f1f;
}

.social-draft {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.social-draft__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ra-text-muted);
}

.social-draft__body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.social-draft__thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: var(--ra-radius-sm);
    flex-shrink: 0;
}

.social-draft__content {
    background: #f7f8fa;
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-sm);
    padding: 14px 16px;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.social-draft__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-status--draft { background: #eef2f6; color: #40505f; }
.badge-status--posted { background: #e9f7ee; color: #1e6b3b; }
.badge-status--rejected { background: #eef2f6; color: #7a8a99; }
.badge-status--failed { background: #fbeaea; color: #7a1f1f; }

.social-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.social-history-table th,
.social-history-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ra-border);
    vertical-align: top;
}

.social-history-table th {
    color: var(--ra-text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
