/**
 * Hero Price Fix - Critical for white text on red background
 * Ensures proper price display in hero sections
 * Version: 2024.1
 */

/* Hero Price Display Fixes */
.dlm-hero-section .dlm-bundle-pricing,
.dlm-hero-content .dlm-bundle-pricing,
.dlm-bundle-highlight .dlm-bundle-pricing {
    color: #ffffff !important;
}

/* Bundle Price Amount Styling */
.dlm-bundle-amount {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 2.5rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Bundle Currency Styling */
.dlm-bundle-currency {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
}

/* Bundle Savings Text */
.dlm-bundle-savings {
    color: #ffffff !important;
    opacity: 0.85 !important;
}

.dlm-savings-amount {
    color: #ffffff !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}

/* Hero Price Elements on Dark Backgrounds */
.dlm-hero-section .price,
.dlm-hero-overlay + * .price,
.dlm-hero-content .price {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Price Elements in Hero Cards */
.dlm-hero-section .woocommerce-Price-amount,
.dlm-hero-content .woocommerce-Price-amount {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Bundle Highlight - Restore proper colors for formations section */
.dlm-bundle-highlight .dlm-bundle-amount {
    color: #28a745 !important;
    font-weight: 800 !important;
    font-size: 3rem !important;
}

.dlm-bundle-highlight .dlm-bundle-currency {
    color: #6c757d !important;
    font-weight: 500 !important;
}

.dlm-bundle-highlight .dlm-savings-amount {
    color: #28a745 !important;
    font-weight: 600 !important;
}

.dlm-bundle-highlight .dlm-bundle-btn {
    background: linear-gradient(135deg, #9e3235 0%, #7a252a 100%) !important;
    color: white !important;
}

.dlm-bundle-highlight .dlm-bundle-btn:hover {
    background: linear-gradient(135deg, #7a252a 0%, #5d1c20 100%) !important;
    color: white !important;
}

/* Bundle Highlight - Only apply white text when in hero sections */
.dlm-hero-section .dlm-bundle-highlight .dlm-bundle-price {
    color: #ffffff !important;
}

.dlm-hero-section .dlm-bundle-highlight .dlm-bundle-amount {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Formation Card Pricing */
.dlm-formation-card .price {
    color: #9e3235 !important;
    font-weight: 700 !important;
}

/* Button Styling for Price Actions */
.dlm-bundle-btn {
    background: #ffffff !important;
    color: #9e3235 !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.dlm-bundle-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Responsive Price Display */
@media (max-width: 768px) {
    .dlm-bundle-amount {
        font-size: 2rem !important;
    }

    .dlm-bundle-currency {
        font-size: 1rem !important;
    }

    .dlm-bundle-pricing {
        text-align: center !important;
    }
}

/* High Contrast for Accessibility */
@media (prefers-contrast: high) {
    .dlm-bundle-amount {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
        border: 1px solid #ffffff !important;
        padding: 0.25rem 0.5rem !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }
}

/* Print Styles */
@media print {
    .dlm-bundle-amount,
    .dlm-bundle-pricing {
        color: #000000 !important;
        text-shadow: none !important;
    }
}
