/* ORBITECH Blog — Content Type System (badges & filters) */

/* ============================================
   CONTENT TYPE SYSTEM (Article/Cours/Exercice/Quiz)
   ============================================ */

/* --- Type Badges --- */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.type-badge i { font-size: 0.65rem; }
.type-article { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.type-cours { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.type-exercice { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.type-quiz { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.type-fiche { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.type-carte-mentale { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.type-glossaire { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.type-annale { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.type-methode { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.type-chronologie { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.type-formules { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.type-flashcard { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.type-resume { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.type-comparatif { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.type-plan { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.type-analyse-lineaire { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.type-dissertation { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.type-conjugaison { background: rgba(8, 145, 178, 0.1); color: #0891b2; }
.type-grammaire { background: rgba(13, 148, 136, 0.1); color: #0d9488; }
.type-definition { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.type-explainer { background: rgba(234, 179, 8, 0.1); color: #ca8a04; }
.type-probleme-type { background: rgba(234, 88, 12, 0.1); color: #ea580c; }
.type-fiche-auteur { background: rgba(217, 70, 239, 0.1); color: #d946ef; }
.type-sujets-probables { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.type-analyse-oeuvre { background: rgba(225, 29, 72, 0.1); color: #e11d48; }
.type-fiche-metier { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.type-copie-modele { background: rgba(5, 150, 105, 0.1); color: #059669; }
.type-faq { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.type-guide-formation { background: rgba(5, 150, 105, 0.1); color: #059669; }
.type-resume-chapitre { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.type-vocabulaire { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }

/* --- Type Filter Bar --- */
.type-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 8px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
    flex-wrap: nowrap;
    mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 24px), transparent);
}
.type-filters::-webkit-scrollbar {
    height: 4px;
}
.type-filters::-webkit-scrollbar-track {
    background: transparent;
}
.type-filters::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}
.type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 50px;
    background: var(--card-bg, white);
    color: var(--text-muted, #475569);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.type-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-1px);
}
.type-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}
.type-btn .type-count {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 600;
}
.type-btn.active .type-count { opacity: 0.9; }
.type-btn i { font-size: 0.78rem; }


/* --- Dark Mode Types --- */
/* --- Dark Mode Types --- */
[data-theme="dark"] .type-article { background: rgba(99, 102, 241, 0.15); }
[data-theme="dark"] .type-cours { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .type-exercice { background: rgba(245, 158, 11, 0.15); }
[data-theme="dark"] .type-quiz { background: rgba(239, 68, 68, 0.15); }
[data-theme="dark"] .type-fiche { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .type-carte-mentale { background: rgba(99, 102, 241, 0.15); }
[data-theme="dark"] .type-glossaire { background: rgba(6, 182, 212, 0.15); }
[data-theme="dark"] .type-annale { background: rgba(249, 115, 22, 0.15); }
[data-theme="dark"] .type-methode { background: rgba(20, 184, 166, 0.15); }
[data-theme="dark"] .type-chronologie { background: rgba(139, 92, 246, 0.15); }
[data-theme="dark"] .type-formules { background: rgba(236, 72, 153, 0.15); }
[data-theme="dark"] .type-flashcard { background: rgba(99, 102, 241, 0.15); }
[data-theme="dark"] .type-resume { background: rgba(14, 165, 233, 0.15); }
[data-theme="dark"] .type-comparatif { background: rgba(249, 115, 22, 0.15); }
[data-theme="dark"] .type-plan { background: rgba(34, 197, 94, 0.15); }
[data-theme="dark"] .type-analyse-lineaire { background: rgba(168, 85, 247, 0.15); }
[data-theme="dark"] .type-dissertation { background: rgba(124, 58, 237, 0.15); }
[data-theme="dark"] .type-conjugaison { background: rgba(8, 145, 178, 0.15); }
[data-theme="dark"] .type-grammaire { background: rgba(13, 148, 136, 0.15); }
[data-theme="dark"] .type-definition { background: rgba(14, 165, 233, 0.15); }
[data-theme="dark"] .type-explainer { background: rgba(234, 179, 8, 0.15); }
[data-theme="dark"] .type-probleme-type { background: rgba(234, 88, 12, 0.15); }
[data-theme="dark"] .type-fiche-auteur { background: rgba(217, 70, 239, 0.15); }
[data-theme="dark"] .type-sujets-probables { background: rgba(239, 68, 68, 0.15); }
[data-theme="dark"] .type-analyse-oeuvre { background: rgba(225, 29, 72, 0.15); }
[data-theme="dark"] .type-fiche-metier { background: rgba(37, 99, 235, 0.15); }
[data-theme="dark"] .type-copie-modele { background: rgba(5, 150, 105, 0.15); }
[data-theme="dark"] .type-faq { background: rgba(139, 92, 246, 0.15); }
[data-theme="dark"] .type-guide-formation { background: rgba(5, 150, 105, 0.15); }
[data-theme="dark"] .type-resume-chapitre { background: rgba(6, 182, 212, 0.15); }
[data-theme="dark"] .type-vocabulaire { background: rgba(20, 184, 166, 0.15); }

/* Type filter bar dark */
[data-theme="dark"] .type-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .type-btn:hover {
    border-color: #818cf8;
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
}
[data-theme="dark"] .type-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: white;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .type-filters { gap: 6px; padding: 6px 0; }
    .type-btn { padding: 6px 14px; font-size: 0.78rem; }
}
