/* ========================================
   TAGS.CSS - Styles spécifiques aux tags
   ======================================== */

/* ===== BADGES DE TAGS ===== */
.tag-badge {
    background-color: var(--tag-color, #007bff) !important;
    color: white !important;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75em 1em;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white !important;
}

.tag-badge-small {
    background-color: var(--tag-color, #007bff) !important;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375em 0.75em;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-badge-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white !important;
}

.tag-badge-related {
    background-color: var(--tag-color, #007bff) !important;
    color: white !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-badge-related:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white !important;
}

/* ===== EN-TÊTES DE PAGES DE TAGS ===== */
.tag-header-card {
    border-left: 5px solid var(--tag-color, #007bff);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.tag-header-card .card-body {
    padding: 2rem;
}

.tag-header-card h1 {
    margin-bottom: 0.5rem;
}

.tag-header-card .tag-badge {
    margin-right: 1rem;
}

/* ===== LISTE DES TAGS ===== */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tags-list .tag-item {
    transition: all 0.3s ease;
}

.tags-list .tag-item:hover {
    transform: translateY(-2px);
}

/* ===== FILTRES DE TAGS ===== */
.tag-filter {
    margin-bottom: 1.5rem;
}

.tag-filter .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag-filter .form-select:focus {
    border-color: var(--tag-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ===== STATISTIQUES DES TAGS ===== */
.tag-stats {
    background: var(--light-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tag-stats .stat-item {
    text-align: center;
    padding: 0.5rem;
}

.tag-stats .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--tag-color, #007bff);
}

.tag-stats .stat-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== TAGS SIMILAIRES ===== */
.related-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.related-tags h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.related-tags .tag-badge-related {
    margin: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tag-badge {
        font-size: 1.25rem;
        padding: 0.5em 0.75em;
    }
    
    .tag-header-card .card-body {
        padding: 1.5rem;
    }
    
    .tags-list {
        gap: 0.375rem;
    }
}

@media (max-width: 576px) {
    .tag-badge {
        font-size: 1rem;
        padding: 0.375em 0.5em;
    }
    
    .tag-header-card .card-body {
        padding: 1rem;
    }
    
    .tag-header-card h1 {
        font-size: 1.5rem;
    }
    
    .tags-list {
        gap: 0.25rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes tagPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tag-badge:hover {
    animation: tagPulse 0.6s ease-in-out;
}

/* ===== ÉTATS SPÉCIAUX ===== */
.tag-badge.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tag-badge.disabled:hover {
    transform: none;
    box-shadow: none;
}

.tag-badge.highlight {
    animation: tagPulse 2s ease-in-out infinite;
}

/* ===== VARIANTES DE COULEURS ===== */
.tag-badge.tag-primary {
    --tag-color: #007bff;
}

.tag-badge.tag-success {
    --tag-color: #28a745;
}

.tag-badge.tag-warning {
    --tag-color: #ffc107;
}

.tag-badge.tag-danger {
    --tag-color: #dc3545;
}

.tag-badge.tag-info {
    --tag-color: #17a2b8;
}

.tag-badge.tag-secondary {
    --tag-color: #6c757d;
}

.tag-badge.tag-dark {
    --tag-color: #343a40;
}

.tag-badge.tag-light {
    --tag-color: #f8f9fa;
    color: var(--dark-color) !important;
}
