/**
 * dashboard.css
 * Styles communs aux dashboards IA (Facebook, Instagram, TikTok, YouTube, Shopify).
 * Extrait des blocs <style> inline pour éviter la duplication.
 */

/* ── Boutons d'action IA ────────────────────────────────────────────────────── */
.ai-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background: var(--light-color, #f8f9fa);
    cursor: pointer;
    transition: all .18s;
    width: 100%;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-color, #222);
}
.ai-action-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(83, 90, 231, .12);
}
.ai-action-btn.active {
    border-color: var(--primary);
    background: rgba(83, 90, 231, .07);
    color: var(--primary);
}
.ai-action-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.ai-action-btn .ai-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

/* ── Carte résultat IA ──────────────────────────────────────────────────────── */
.ai-result-card {
    border-radius: 10px;
    border: 1.5px solid rgba(83, 90, 231, .18);
    background: rgba(83, 90, 231, .03);
    overflow: hidden;
}
.ai-result-card .ai-result-section {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(83, 90, 231, .10);
}
.ai-result-card .ai-result-section:last-child {
    border-bottom: none;
}

/* ── Suggestions de version ─────────────────────────────────────────────────── */
.version-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid #e9ecef;
    margin-bottom: 6px;
    cursor: pointer;
    transition: .15s;
}
.version-suggestion:hover  { border-color: var(--primary); background: rgba(83, 90, 231, .04); }
.version-suggestion.applied { border-color: #1D9E75; background: rgba(29, 158, 117, .06); }

/* ── Zone d'upload ──────────────────────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed rgba(83, 90, 231, .30);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(83, 90, 231, .03);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
    position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(83, 90, 231, .07);
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

/* ── Preview produit / post ─────────────────────────────────────────────────── */
.post-preview-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    background: #fff;
}
.post-preview-card .preview-header {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.post-preview-card .preview-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f8f9fa;
}
.post-preview-card .preview-body {
    padding: 12px 14px;
}

/* ── Couleurs de marque plateformes ─────────────────────────────────────────── */
.tt-dark         { background: #010101 !important; }
.tt-gradient     { background: linear-gradient(135deg, #010101, #EE1D52, #69C9D0) !important; }
.text-tt         { color: #EE1D52 !important; }
.border-tt       { border-left: 3px solid #EE1D52 !important; }
.shopify-green   { background: #96BF48 !important; }
.text-shopify    { color: #96BF48 !important; }
.border-shopify  { border-left: 3px solid #96BF48 !important; }

/* ── Analytics index ────────────────────────────────────────────────────────── */
.apexcharts-toolbar { padding: 8px 12px !important; }
.apexcharts-menu {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.apexcharts-menu-item { padding: 8px 16px !important; color: #374151 !important; font-size: 13px !important; }
.apexcharts-menu-item:hover { background: #f3f4f6 !important; }

/* ── Planification ──────────────────────────────────────────────────────────── */
.draft-post-card {
    background: var(--color-bg, #fff);
    border: 1px solid #e5e7eb;
    border-left: 3px solid #3D9CFD;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: grab;
    user-select: none;
    transition: box-shadow .15s, transform .15s;
}
.draft-post-card:active                 { cursor: grabbing; }
.draft-post-card:hover                  { box-shadow: 0 4px 16px rgba(0,0,0,.10); transform: translateY(-1px); }
.draft-post-card.platform-facebook      { border-left-color: #4267B2; }
.draft-post-card.platform-instagram     { border-left-color: #C13584; }
.draft-post-card.platform-linkedin      { border-left-color: #0077B5; }
.draft-post-card.platform-tiktok        { border-left-color: #010101; }
.draft-post-card.platform-x             { border-left-color: #1DA1F2; }

.fc-day.drag-over { background: rgba(61,156,253,.08) !important; outline: 2px dashed #3D9CFD; }
.fc .fc-toolbar-title  { font-size: 16px; font-weight: 700; }
.fc .fc-event          { border-radius: 6px !important; border: none !important; padding: 2px 7px; font-size: 12px; cursor: pointer; }
.fc .fc-daygrid-event  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Badges plateforme ──────────────────────────────────────────────────────── */
.plt-badge     { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.plt-facebook  { background: #e8f0fe; color: #4267B2; }
.plt-instagram { background: #fce4ec; color: #C13584; }
.plt-linkedin  { background: #e3f2fd; color: #0077B5; }
.plt-tiktok    { background: #f3e5f5; color: #333; }
.plt-x         { background: #e3f2fd; color: #1DA1F2; }
.plt-shopify   { background: #f0f9e8; color: #96BF48; }
.plt-youtube   { background: #fff0f0; color: #ff0000; }
.plt-default   { background: #f1f1f1; color: #555; }

/* ── Note badge admin ───────────────────────────────────────────────────────── */
.note-badge {
    font-size: 0.85rem;
    min-width: 40px;
    display: inline-block;
    text-align: center;
}

/* ── Social cards & SEO (moved from responsive.css) ─── */

/* Grille des cartes */
.social-grid {
    justify-content: center;
}

/* Carte principale */
.social-card {
    border-radius: 1.5rem;
    height: 110px;
    width: 110px;
    color: white;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.social-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

/* Icône */
.social-card .icon-wrapper {
    font-size: 2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 12px;
}

/* Couleurs personnalisées (ou garde tes classes btn-*) */
.bg-facebook { background: linear-gradient(135deg, #3b5998, #4c70ba); }
.bg-linkedin { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.bg-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.bg-gradient-instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bg-shopify { background: linear-gradient(135deg, #95bf47, #5e8e3e); }
.bg-youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.bg-danger { background: linear-gradient(135deg, #dc3545, #a71d2a); }
.bg-dark { background: linear-gradient(135deg, #343a40, #1d2124); }


.seo-audit-modern {
    background-color: var(--bodybg-color, #f6f6f6);
}

.analysis-card,
.content-card {
    background: var(--white, #ffffff);
    border-radius: var(--app-border-radius, 0.8rem);
    box-shadow: var(--box-shadow, 0px 0px 21px 3px rgba(var(--secondary), 0.05));
    border: 1px solid var(--border_color, #ebedf0);
    transition: var(--app-transition, all 0.3s ease);
}

.analysis-card:hover,
.content-card:hover {
    box-shadow: var(--hover-shadow, 0 0.5rem 2rem var(--light-gray));
}


.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        #4CAF50 calc(var(--score-percent) * 1%),
        #e0e0e0 0%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.score-circle::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
}
.score-value {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}
.performance-details .progress {
    background-color: #f8f9fa;
}
.content-section-card {
    transition: transform 0.2s ease;
}
.content-section-card:hover {
    transform: translateY(-2px);
}
