/**
 * Styles pour les widgets Aurea
 * 
 * @package Aurea_PMPro_Customizations
 * @since 2.0.0
 */

/* Widget de remises */
.aurea-discounts-widget {
    margin: 0;
    padding: 0;
}

.aurea-discount-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.aurea-discount-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.aurea-discount-item.active {
    border-left: 4px solid #46b450;
}

.aurea-discount-item.inactive {
    opacity: 0.7;
    background: #f9f9f9;
}

.aurea-discount-item .discount-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.aurea-discount-item .discount-name {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #23282d;
    flex: 1;
}

.aurea-discount-item .discount-value {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 10px;
}

.aurea-discount-item .discount-details {
    font-size: 0.9em;
    color: #666;
}

.aurea-discount-item .discount-badge {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
    margin-right: 5px;
}

.aurea-discount-item .discount-date {
    margin-top: 5px;
    font-size: 0.8em;
}

.aurea-discount-item .discount-date .label {
    font-weight: 500;
    color: #666;
}

.aurea-discount-item .discount-date .value {
    color: #23282d;
}

/* Widget responsive */
@media (max-width: 768px) {
    .aurea-discount-item .discount-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .aurea-discount-item .discount-value {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Widget dans la sidebar */
.widget_aurea_discount_widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget_aurea_discount_widget .widget-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #23282d;
    font-size: 1.1em;
    font-weight: 600;
}

/* Animation d'entrée */
.aurea-discount-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États de survol */
.aurea-discount-item:hover .discount-name {
    color: #0073aa;
}

.aurea-discount-item:hover .discount-value {
    background: #c3e6cb;
    color: #155724;
}

/* Widget vide */
.aurea-discounts-widget:empty::after {
    content: "Aucune remise active actuellement.";
    display: block;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Badges spéciaux */
.aurea-discount-item .discount-badge.first-time {
    background: linear-gradient(135deg, #ffb347, #ffcc80);
    color: #6d4c00;
    font-weight: 600;
}

.aurea-discount-item .discount-badge.limited {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    font-weight: 600;
}

.aurea-discount-item .discount-badge.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
    font-weight: 600;
}

/* Tooltips pour les badges */
.aurea-discount-item .discount-badge {
    position: relative;
    cursor: help;
}

.aurea-discount-item .discount-badge:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.aurea-discount-item .discount-badge:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
    z-index: 1000;
}

/* Widget dans le footer */
.footer-widgets .aurea-discounts-widget {
    background: transparent;
    border: none;
    padding: 0;
}

.footer-widgets .aurea-discount-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.footer-widgets .aurea-discount-item .discount-name {
    color: #fff;
}

.footer-widgets .aurea-discount-item .discount-value {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Widget dans la sidebar principale */
.main-sidebar .aurea-discounts-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

/* Widget dans les pages de contenu */
.content-area .aurea-discounts-widget {
    margin: 20px 0;
}

/* Widget dans les archives */
.archive .aurea-discounts-widget {
    margin-bottom: 30px;
}

/* Widget dans les pages de recherche */
.search .aurea-discounts-widget {
    margin-top: 20px;
}

/* Widget dans les pages 404 */
.error404 .aurea-discounts-widget {
    margin: 30px 0;
}

/* Widget dans les pages de maintenance */
.maintenance-mode .aurea-discounts-widget {
    opacity: 0.8;
}

/* Widget avec thème sombre */
.dark-theme .aurea-discount-item {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-theme .aurea-discount-item .discount-name {
    color: #e2e8f0;
}

.dark-theme .aurea-discount-item .discount-value {
    background: #38a169;
    color: #fff;
}

.dark-theme .aurea-discount-item .discount-details {
    color: #a0aec0;
}

/* Widget avec thème coloré */
.colorful-theme .aurea-discount-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.colorful-theme .aurea-discount-item .discount-name {
    color: #fff;
}

.colorful-theme .aurea-discount-item .discount-value {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.colorful-theme .aurea-discount-item .discount-details {
    color: rgba(255,255,255,0.8);
}

/* Widget avec animations avancées */
.animated-theme .aurea-discount-item {
    animation: slideInFromLeft 0.5s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated-theme .aurea-discount-item:nth-child(2) {
    animation-delay: 0.1s;
}

.animated-theme .aurea-discount-item:nth-child(3) {
    animation-delay: 0.2s;
}

.animated-theme .aurea-discount-item:nth-child(4) {
    animation-delay: 0.3s;
}

.animated-theme .aurea-discount-item:nth-child(5) {
    animation-delay: 0.4s;
}

/* Widget avec effets de survol avancés */
.hover-effects .aurea-discount-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-effects .aurea-discount-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hover-effects .aurea-discount-item:hover .discount-value {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Widget avec grille responsive */
.grid-layout .aurea-discounts-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.grid-layout .aurea-discount-item {
    margin-bottom: 0;
}

/* Widget avec liste compacte */
.compact-layout .aurea-discount-item {
    padding: 10px;
    margin-bottom: 5px;
}

.compact-layout .aurea-discount-item .discount-header {
    margin-bottom: 5px;
}

.compact-layout .aurea-discount-item .discount-name {
    font-size: 0.9em;
}

.compact-layout .aurea-discount-item .discount-value {
    font-size: 0.8em;
    padding: 2px 6px;
}

/* Widget avec icônes */
.iconic-layout .aurea-discount-item .discount-name::before {
    content: "🎯";
    margin-right: 8px;
}

.iconic-layout .aurea-discount-item .discount-value::before {
    content: "💰";
    margin-right: 5px;
}

.iconic-layout .aurea-discount-item .discount-badge.first-time::before {
    content: "⭐";
    margin-right: 3px;
}

/* Widget avec indicateurs de statut */
.status-indicators .aurea-discount-item.active::before {
    content: "●";
    color: #46b450;
    font-size: 1.5em;
    position: absolute;
    top: 10px;
    right: 10px;
}

.status-indicators .aurea-discount-item.inactive::before {
    content: "○";
    color: #dc3232;
    font-size: 1.5em;
    position: absolute;
    top: 10px;
    right: 10px;
}

.status-indicators .aurea-discount-item {
    position: relative;
} 