/* ===================================
   BADGES BOOST
   =================================== */

.boost-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.boost-badge i {
    font-size: 10px;
}

.boost-badge-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
}

/* ===================================
   CARTES PRODUIT BOOSTÉES
   =================================== */

.product-card.boosted {
    /* border: 2px solid #667eea; */
    /* box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); */
    position: relative;
}

.product-card.boosted::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes boost-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 3px 12px rgba(102, 126, 234, 0.6);
    }
}

.boost-badge {
    animation: boost-pulse 2s infinite;
}

/* ===================================
   INDICATEURS TEMPS RESTANT
   =================================== */

.boost-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.boost-time {
    font-family: monospace;
}

/* ===================================
   SECTION BOOSTS MON-COMPTE
   =================================== */

.boost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.boost-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.boost-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.boost-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.boost-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boost-badge-active {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00d97e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.boost-info {
    padding: 16px;
}

.boost-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2d3748;
}

.boost-prix {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 12px 0;
}

.boost-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.boost-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.boost-stats i {
    color: #667eea;
    width: 16px;
}

.boost-actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-renouveler {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    text-decoration: none;
    display: block;
}

.btn-view:hover {
    background: #667eea;
    color: white;
}

.btn-renouveler {
    background: #667eea;
    border: none;
    color: white;
}

.btn-renouveler:hover {
    background: #5568d3;
}

/* ===================================
   HISTORIQUE
   =================================== */

.boost-historique {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.boost-historique thead {
    background: #f7fafc;
}

.boost-historique th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
}

.boost-historique td {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

.boost-historique a {
    color: #667eea;
    text-decoration: none;
}

.boost-historique a:hover {
    text-decoration: underline;
}

/* ===================================
   BOUTONS
   =================================== */

.btn-boost-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-boost-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-boost-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-boost-mini:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.no-boosts {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-size: 16px;
}

/* ===================================
   ALERTES PAGE ANNONCE
   =================================== */

.alert-boost-actif {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-boost-actif i {
    color: #667eea;
    font-size: 20px;
}

.alert-boost-actif a {
    color: #667eea;
    font-weight: 600;
    margin-left: auto;
}

.alert-boost-inactif {
    background: #fff5e6;
    border-left: 4px solid #ffa500;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-boost-inactif i {
    color: #ffa500;
    font-size: 20px;
}

.btn-boost-inline {
    background: #ffa500;
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-left: auto;
}

.btn-boost-inline:hover {
    background: #ff8c00;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .boost-grid {
        grid-template-columns: 1fr;
    }
    
    .boost-card {
        max-width: 100%;
    }
    
    .boost-actions {
        flex-direction: column;
    }
    
    .boost-historique {
        font-size: 12px;
    }
    
    .boost-historique th,
    .boost-historique td {
        padding: 8px;
    }
}
