/**
 * SlotsJuice Bonuses Elementor Specific CSS
 * Version: 1.0.0
 */

/* Elementor Editor Preview Styling */
.slotsjuice-bonuses-editor-preview {
    padding: 20px;
    text-align: center;
}

.slotsjuice-bonuses-editor-preview .elementor-panel-alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.preview-placeholder {
    background: #f1f1f1 !important;
    padding: 40px !important;
    text-align: center !important;
    border: 2px dashed #ccc !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

.preview-placeholder i {
    font-size: 48px !important;
    color: #FF6B35 !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.preview-placeholder h3 {
    color: #333 !important;
    margin: 0 0 10px 0 !important;
    font-size: 20px !important;
}

.preview-placeholder p {
    color: #666 !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* Elementor Widget Icon */
.elementor-control-type-icon .elementor-control-input-wrapper i.fa-money-bill-wave {
    color: #FF6B35;
}

/* Elementor Panel Controls */
.elementor-control-slotsjuice-bonuses {
    border-left: 3px solid #FF6B35;
    padding-left: 10px;
}

/* Frontend Elementor Specific Fixes */
.elementor-widget-slotsjuice-bonuses {
    margin: 0;
    padding: 0;
}

.elementor-widget-slotsjuice-bonuses .slotsjuice-bonuses-wrapper {
    margin: 0 !important;
}

/* Elementor Section Background Compatibility */
.elementor-section .slotsjuice-bonuses-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 20px 0;
}

.elementor-section .slotsjuice-bonuses-wrapper::before {
    display: none;
}

/* Ensure all bonus elements are visible in Elementor */
.elementor-widget-slotsjuice-bonuses .bonus-details,
.elementor-widget-slotsjuice-bonuses .bonus-amount,
.elementor-widget-slotsjuice-bonuses .bonus-description,
.elementor-widget-slotsjuice-bonuses .review-link,
.elementor-widget-slotsjuice-bonuses .claim-button {
    display: block !important;
    visibility: visible !important;
}

.elementor-widget-slotsjuice-bonuses .bonus-details {
    display: flex !important;
    justify-content: space-between !important;
}

/* Ultra compact spacing for Elementor */
.elementor-widget-slotsjuice-bonuses .bonus-content {
    padding: 6px !important;
}

.elementor-widget-slotsjuice-bonuses .bonus-type {
    margin-bottom: 2px !important;
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
}

.elementor-widget-slotsjuice-bonuses .bonus-amount {
    margin-bottom: 2px !important;
    font-size: 1.5rem !important;
}

.elementor-widget-slotsjuice-bonuses .bonus-description {
    margin-bottom: 4px !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.elementor-widget-slotsjuice-bonuses .bonus-details {
    margin-bottom: 4px !important;
    font-size: 0.7rem !important;
}

.elementor-widget-slotsjuice-bonuses .claim-button {
    margin: 0 auto 3px auto !important;
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    min-width: 5rem !important;
}

.elementor-widget-slotsjuice-bonuses .review-link {
    margin-bottom: 2px !important;
    font-size: 0.75rem !important;
}

.elementor-widget-slotsjuice-bonuses .casino-logo {
    height: 36px !important;
}

.elementor-widget-slotsjuice-bonuses .casino-name {
    font-size: 0.8rem !important;
}

.elementor-widget-slotsjuice-bonuses .terms-notice {
    font-size: 0.6rem !important;
}

/* Elementor Column Compatibility */
.elementor-column .slotsjuice-bonuses-wrapper {
    max-width: 100%;
    width: 100%;
}

/* Elementor Responsive Adjustments */
@media (max-width: 1024px) {
    .elementor-section .slotsjuice-bonuses-wrapper {
        padding: 15px 0;
    }
}

@media (max-width: 767px) {
    .elementor-section .slotsjuice-bonuses-wrapper {
        padding: 10px 0;
    }
    
    .elementor-section .slotsjuice-bonuses-wrapper .header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

/* Elementor Color Scheme Integration */
.elementor-scheme-color-1 .slotsjuice-bonuses-wrapper {
    --juice-dark: var(--e-global-color-text);
}

.elementor-scheme-color-2 .slotsjuice-bonuses-wrapper {
    --juice-orange: var(--e-global-color-accent);
}

/* Elementor Typography Integration */
.elementor-widget-slotsjuice-bonuses .main-title {
    font-family: var(--e-global-typography-primary-font-family, 'Inter');
}

.elementor-widget-slotsjuice-bonuses .intro-text {
    font-family: var(--e-global-typography-text-font-family, 'Inter');
}

/* Elementor Motion Effects Compatibility */
.elementor-invisible .slotsjuice-bonuses-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.elementor-invisible.elementor-animation-grow .slotsjuice-bonuses-wrapper {
    transform: scale(0.8);
}

.elementor-invisible.elementor-animation-shrink .slotsjuice-bonuses-wrapper {
    transform: scale(1.2);
}

/* Fix for Elementor Popup Integration */
.elementor-popup-modal .slotsjuice-bonuses-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 20px 15px;
}

.elementor-popup-modal .slotsjuice-bonuses-wrapper .floating-drop {
    display: none;
}

/* Elementor Theme Builder Compatibility */
.elementor-location-header .slotsjuice-bonuses-wrapper,
.elementor-location-footer .slotsjuice-bonuses-wrapper {
    margin: 10px 0;
}

/* Elementor Pro Features Compatibility */
.elementor-motion-effects-container .slotsjuice-bonuses-wrapper {
    z-index: 1;
}

/* Custom Elementor Control Styling */
.elementor-control-desktop_columns .elementor-control-input-wrapper {
    border-left: 3px solid #FF6B35;
    padding-left: 8px;
}

.elementor-control-primary_color .elementor-control-input-wrapper,
.elementor-control-success_color .elementor-control-input-wrapper {
    border-radius: 4px;
    overflow: hidden;
}

/* Elementor Navigator Integration */
.elementor-navigator__element[data-model-cid*="slotsjuice-bonuses"] .elementor-navigator__element__title::before {
    content: "💰";
    margin-right: 5px;
}

/* Elementor History Integration */
.elementor-panel-history .elementor-panel-history-item[data-model-cid*="slotsjuice-bonuses"] .elementor-panel-history-item__title::before {
    content: "💰";
    margin-right: 5px;
}

/* Elementor Search Integration */
.elementor-panel-elements-search-area input:focus {
    border-color: #FF6B35;
}

.elementor-element[data-widget_type*="slotsjuice-bonuses"] .elementor-widget-container {
    overflow: visible;
}

/* RTL Support for Elementor */
[dir="rtl"] .slotsjuice-bonuses-wrapper .header-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .slotsjuice-bonuses-wrapper .nav-arrow.prev {
    left: auto;
    right: -20px;
}

[dir="rtl"] .slotsjuice-bonuses-wrapper .nav-arrow.next {
    right: auto;
    left: -20px;
}

[dir="rtl"] .slotsjuice-bonuses-wrapper .bonuses-badge {
    flex-direction: row-reverse;
}

/* Dark Mode Support for Elementor */
.elementor-panel-scheme-color .elementor-panel-scheme-color-item.dark-mode .slotsjuice-bonuses-wrapper {
    --juice-dark: #f1f1f1;
    --juice-white: #1a1a1a;
}

/* Elementor Global Settings Override Prevention */
.slotsjuice-bonuses-wrapper * {
    box-sizing: border-box;
}

.slotsjuice-bonuses-wrapper a {
    color: inherit;
    text-decoration: none;
}

.slotsjuice-bonuses-wrapper button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

/* Elementor Loading State */
.elementor-loading .slotsjuice-bonuses-wrapper {
    opacity: 0.6;
}

/* Elementor Custom Breakpoints Support */
@media (max-width: 1366px) and (min-width: 1025px) {
    .elementor-section .slotsjuice-bonuses-wrapper .bonus-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .elementor-section .slotsjuice-bonuses-wrapper .bonus-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .elementor-section .slotsjuice-bonuses-wrapper .bonus-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .elementor-section .slotsjuice-bonuses-wrapper .bonus-cards {
        grid-template-columns: 1fr;
    }
}

/* Accessibility for Elementor */
.slotsjuice-bonuses-wrapper:focus-within {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

.slotsjuice-bonuses-wrapper .nav-arrow:focus,
.slotsjuice-bonuses-wrapper .tab-button:focus,
.slotsjuice-bonuses-wrapper .claim-button:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Performance optimization for Elementor */
.elementor-optimized-assets-loading .slotsjuice-bonuses-wrapper .bonus-card,
.elementor-optimized-assets-loading .slotsjuice-bonuses-wrapper .tab-button,
.elementor-optimized-assets-loading .slotsjuice-bonuses-wrapper .claim-button,
.elementor-optimized-assets-loading .slotsjuice-bonuses-wrapper .nav-arrow {
    will-change: auto;
}
