/**
 * BonusCards Main CSS - Exact replica of original design
 * All original styles preserved for WordPress plugin
 */

/* CSS Custom Properties */
:root {
    --primary-color: #ff6b35;
    --primary-gradient: linear-gradient(135deg, #ff6b35, #f7931e);
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #ff6b35;
    --primary-gradient: linear-gradient(135deg, #ff6b35, #f7931e);
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --border-color: #4a5568;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
}

/* Reset and Base Styles */
.bonuscards-main-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Elementor Compatibility - Gentle Override */
.elementor-widget-container .bonuscards-main-wrapper,
.elementor-element .bonuscards-main-wrapper,
.elementor-widget-shortcode .bonuscards-main-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    width: 100% !important;
    background: none !important;
    color: var(--text-primary, #2c3e50) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-widget-container .bonuscards-main-wrapper *,
.elementor-element .bonuscards-main-wrapper *,
.elementor-widget-shortcode .bonuscards-main-wrapper * {
    box-sizing: border-box !important;
}

.elementor-widget-container .bonuscards-main-wrapper .bonuscards-container,
.elementor-element .bonuscards-main-wrapper .bonuscards-container,
.elementor-widget-shortcode .bonuscards-main-wrapper .bonuscards-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 25px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    overflow: visible !important;
    position: relative !important;
    padding: 20px !important;
}

.elementor-widget-container .bonuscards-main-wrapper .bonuscards-main-content,
.elementor-element .bonuscards-main-wrapper .bonuscards-main-content,
.elementor-widget-shortcode .bonuscards-main-wrapper .bonuscards-main-content {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 30px !important;
}

.elementor-widget-container .bonuscards-main-wrapper button,
.elementor-element .bonuscards-main-wrapper button,
.elementor-widget-shortcode .bonuscards-main-wrapper button {
    font-family: inherit !important;
    cursor: pointer !important;
}

.bonuscards-main-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: none;
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

/* Main Wrapper Container */
.bonuscards-main-wrapper .bonuscards-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
    position: relative;
    padding: 20px;
}

/* Glassmorphism effect */
.bonuscards-main-wrapper .bonuscards-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.3) 20%, 
        rgba(255, 107, 53, 0.6) 50%, 
        rgba(255, 107, 53, 0.3) 80%, 
        transparent 100%);
    z-index: 10;
}

/* Dark theme wrapper */
[data-theme="dark"] .bonuscards-main-wrapper {
    background: none;
}

[data-theme="dark"] .bonuscards-main-wrapper .bonuscards-container {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(71, 85, 105, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bonuscards-main-wrapper .bonuscards-container::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.4) 20%, 
        rgba(255, 107, 53, 0.7) 50%, 
        rgba(255, 107, 53, 0.4) 80%, 
        transparent 100%);
}

/* Header Styles */
.bonuscards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.bonuscards-header-left {
    display: flex;
    align-items: center;
}

.bonuscards-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bonuscards-header-icon {
    font-size: 24px;
    margin-right: 12px;
    color: var(--primary-color);
}

.bonuscards-header p,
.bonuscards-header-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* Search Styles */
.bonuscards-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.bonuscards-search-input {
    padding: 10px 40px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    width: 250px;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.bonuscards-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 300px;
}

.bonuscards-search-icon {
    position: absolute;
    right: 15px;
    color: #64748b;
    pointer-events: none;
}

/* Theme Toggle & Notifications */
.bonuscards-theme-toggle, 
.bonuscards-notifications-btn {
    background: var(--bg-secondary);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.bonuscards-theme-toggle:hover, 
.bonuscards-notifications-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Notifications Dropdown */
/* Notifications Dropdown - Elementor Compatible */
.notifications-dropdown,
.bonuscards-notifications-dropdown,
.elementor-widget-container .notifications-dropdown,
.elementor-widget-container .bonuscards-notifications-dropdown,
.elementor-element .notifications-dropdown,
.elementor-element .bonuscards-notifications-dropdown {
    position: absolute !important;
    top: 55px !important;
    right: 0 !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    width: 400px !important;
    max-height: 450px !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.95) !important;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Notifications Header - Elementor Compatible */
.notifications-header,
.elementor-widget-container .notifications-header,
.elementor-element .notifications-header {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8, #7c3aed) !important;
    color: white !important;
    padding: 16px 24px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.notifications-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Header Actions - Elementor Compatible */
.notifications-header-actions,
.elementor-widget-container .notifications-header-actions,
.elementor-element .notifications-header-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Header Buttons - Elementor Compatible */
.notifications-header .notifications-close,
.notifications-header .notifications-mark-all-read,
.elementor-widget-container .notifications-header .notifications-close,
.elementor-widget-container .notifications-header .notifications-mark-all-read,
.elementor-element .notifications-header .notifications-close,
.elementor-element .notifications-header .notifications-mark-all-read {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

.notifications-header .notifications-close:hover,
.notifications-header .notifications-mark-all-read:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Button Font Sizes - Elementor Compatible */
.notifications-header .notifications-mark-all-read,
.elementor-widget-container .notifications-header .notifications-mark-all-read,
.elementor-element .notifications-header .notifications-mark-all-read {
    font-size: 16px !important;
}

.notifications-header .notifications-close,
.elementor-widget-container .notifications-header .notifications-close,
.elementor-element .notifications-header .notifications-close {
    font-size: 18px !important;
}

/* Notifications Footer - Elementor Compatible */
.notifications-footer,
.elementor-widget-container .notifications-footer,
.elementor-element .notifications-footer {
    padding: 12px 24px !important;
    border-top: 1px solid var(--border-color) !important;
    background: var(--bg-primary) !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.notifications-clear-all {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notifications-clear-all:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.notifications-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 10px;
    font-style: italic;
}

/* Loading state - Elementor Compatible */
.notifications-loading-content,
.elementor-widget-container .notifications-loading-content,
.elementor-element .notifications-loading-content {
    padding: 40px 24px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    box-sizing: border-box !important;
}

.loading-spinner,
.elementor-widget-container .loading-spinner,
.elementor-element .loading-spinner {
    font-size: 28px !important;
    animation: rotate 1s linear infinite !important;
}

.loading-text,
.elementor-widget-container .loading-text,
.elementor-element .loading-text {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    font-style: italic !important;
    margin: 0 !important;
}

/* Notification Items - Elementor Compatible */
.notification-item,
.elementor-widget-container .notification-item,
.elementor-element .notification-item {
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(5px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 100% !important;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-primary);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.notification-item:hover::before {
    width: 8px;
    opacity: 1;
}

.notification-item.new::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.notification-item.vip::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.notification-item.cashback::before {
    background: linear-gradient(180deg, #8b5cf6, #7c3aed);
}

/* Notification Content - Elementor Compatible */
.notification-content,
.elementor-widget-container .notification-content,
.elementor-element .notification-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
}

.notification-text,
.elementor-widget-container .notification-text,
.elementor-element .notification-text {
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    position: relative !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.notification-time,
.elementor-widget-container .notification-time,
.elementor-element .notification-time {
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    opacity: 0.9 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Notification Item Layout - Elementor Compatible */
.notification-item,
.elementor-widget-container .notification-item,
.elementor-element .notification-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    justify-content: space-between !important;
}

.notification-unread-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
    }
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread .notification-text {
    font-weight: 600;
}

.notification-item.new {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.05), transparent);
}

.notification-item.vip {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), transparent);
}

.notification-item.cashback {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
}

/* Type specific icons with enhanced styling */
.notification-text::before {
    font-size: 14px;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}

.notification-item.new .notification-text::before {
    content: '🎉';
    animation: bounce 2s infinite;
}

.notification-item.vip .notification-text::before {
    content: '👑';
    animation: rotate 3s linear infinite;
}

.notification-item.cashback .notification-text::before {
    content: '💰';
    animation: swing 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* Position dropdown correctly - Elementor Compatible */
.bonuscards-header-right,
.elementor-widget-container .bonuscards-header-right,
.elementor-element .bonuscards-header-right {
    position: relative !important;
    z-index: 999 !important;
}

/* Ensure notifications button has proper positioning */
.bonuscards-notifications-btn,
.elementor-widget-container .bonuscards-notifications-btn,
.elementor-element .bonuscards-notifications-btn {
    position: relative !important;
    z-index: 998 !important;
}

/* Dark theme support */
[data-theme="dark"] .notifications-dropdown,
[data-theme="dark"] .bonuscards-notifications-dropdown {
    background: var(--bg-secondary);
    border-color: #374151;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-item {
    border-bottom-color: #374151;
}

[data-theme="dark"] .notification-item:hover {
    background: #1f2937;
}

[data-theme="dark"] .notifications-footer {
    background: #1f2937;
    border-top-color: #374151;
}

/* Responsive design - Elementor Compatible */
@media (max-width: 768px) {
    .notifications-dropdown,
    .bonuscards-notifications-dropdown,
    .elementor-widget-container .notifications-dropdown,
    .elementor-widget-container .bonuscards-notifications-dropdown,
    .elementor-element .notifications-dropdown,
    .elementor-element .bonuscards-notifications-dropdown {
        width: 350px !important;
        right: -15px !important;
    }
}

@media (max-width: 480px) {
    .notifications-dropdown,
    .bonuscards-notifications-dropdown,
    .elementor-widget-container .notifications-dropdown,
    .elementor-widget-container .bonuscards-notifications-dropdown,
    .elementor-element .notifications-dropdown,
    .elementor-element .bonuscards-notifications-dropdown {
        width: 320px !important;
        right: -30px !important;
    }
    
    .notification-item,
    .elementor-widget-container .notification-item,
    .elementor-element .notification-item {
        padding: 12px 18px !important;
    }
    
    .notifications-header,
    .elementor-widget-container .notifications-header,
    .elementor-element .notifications-header {
        padding: 12px 18px !important;
        font-size: 15px !important;
    }
    
    .notification-text,
    .elementor-widget-container .notification-text,
    .elementor-element .notification-text {
        font-size: 13px !important;
    }
    
    .notification-time,
    .elementor-widget-container .notification-time,
    .elementor-element .notification-time {
        font-size: 11px !important;
    }
}

/* Main Content Layout */
.bonuscards-main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Styles */
.bonuscards-sidebar {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    border: 1px solid var(--border-color);
}

.bonuscards-sidebar p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.bonuscards-category-counter {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Filters Section */
.bonuscards-filters-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* Filters Title */
.bonuscards-filters-title {
    margin-bottom: 15px !important;
}

/* Reset Filters Button - Blue Style like Favorites */
.bonuscards-main-wrapper .bonuscards-reset-filters,
.elementor-widget-container .bonuscards-main-wrapper .bonuscards-reset-filters,
.elementor-element .bonuscards-main-wrapper .bonuscards-reset-filters {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    font-family: inherit !important;
    margin-bottom: 15px !important;
}

.bonuscards-main-wrapper .bonuscards-reset-filters:hover,
.elementor-widget-container .bonuscards-main-wrapper .bonuscards-reset-filters:hover,
.elementor-element .bonuscards-main-wrapper .bonuscards-reset-filters:hover {
    transform: translateX(3px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    color: white !important;
}

.bonuscards-main-wrapper .bonuscards-reset-filters.resetting,
.elementor-widget-container .bonuscards-main-wrapper .bonuscards-reset-filters.resetting,
.elementor-element .bonuscards-main-wrapper .bonuscards-reset-filters.resetting {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

.bonuscards-reset-filters::before {
    content: '🔄' !important;
    margin-right: 8px !important;
    font-size: 16px !important;
    animation: spin 2s linear infinite paused !important;
}

.bonuscards-reset-filters::after {
    content: 'Reset Filters' !important;
    flex: 1 !important;
}

.bonuscards-reset-filters:hover::before {
    animation-play-state: running !important;
}

.bonuscards-reset-filters.resetting::before {
    content: '✅' !important;
    animation: checkmark 0.5s ease-in-out !important;
}

.bonuscards-reset-filters.resetting::after {
    content: 'Filters Reset!' !important;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Dark theme reset button */
[data-theme="dark"] .bonuscards-main-wrapper .bonuscards-reset-filters,
[data-theme="dark"] .elementor-widget-container .bonuscards-main-wrapper .bonuscards-reset-filters,
[data-theme="dark"] .elementor-element .bonuscards-main-wrapper .bonuscards-reset-filters {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
}

[data-theme="dark"] .bonuscards-main-wrapper .bonuscards-reset-filters:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5) !important;
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}

.bonuscards-filter-group {
    margin-bottom: 15px;
}

.bonuscards-filter-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

/* Range Sliders */
.bonuscards-filter-range {
    width: 100%;
    margin-bottom: 15px;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, 
        var(--primary-color) 0%, 
        var(--primary-color) 100%, 
        var(--border-color) 100%, 
        var(--border-color) 100%);
    border-radius: 25px;
    outline: none;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.bonuscards-filter-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), #f7931e);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    border: 2px solid white;
    transition: all 0.3s ease;
    position: relative;
}

.bonuscards-filter-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.bonuscards-filter-range::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.8);
}

.bonuscards-filter-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), #f7931e);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.bonuscards-filter-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.bonuscards-filter-range::-moz-range-track {
    height: 8px;
    background: var(--border-color);
    border-radius: 25px;
}

.bonuscards-range-container {
    position: relative;
    margin-bottom: 10px;
}

.bonuscards-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

.bonuscards-range-values span {
    padding: 4px 8px;
    background: var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bonuscards-range-values span:first-child {
    background: linear-gradient(135deg, var(--primary-color), #f7931e);
    color: white;
    transform: scale(1.05);
}

.bonuscards-range-values span:last-child {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.bonuscards-range-value-display {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.bonuscards-range-value-display::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
}

.bonuscards-range-value-display.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.bonuscards-filter-range:hover + .bonuscards-range-value-display,
.bonuscards-filter-range:focus + .bonuscards-range-value-display {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Animated gradient background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bonuscards-filter-range:hover {
    background: linear-gradient(45deg, 
        var(--primary-color), 
        #f7931e, 
        var(--primary-color), 
        #ff6b35);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .bonuscards-filter-range {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .bonuscards-filter-range::-webkit-slider-thumb {
    border-color: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

[data-theme="dark"] .bonuscards-filter-range::-webkit-slider-thumb:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.8);
}

[data-theme="dark"] .bonuscards-filter-range::-moz-range-thumb {
    border-color: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

[data-theme="dark"] .bonuscards-range-value-display {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
}

/* Additional visual enhancements */
/* Icons are already in the HTML, no need for ::before */

.bonuscards-range-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.2) 25%, 
        rgba(255, 107, 53, 0.3) 50%, 
        rgba(255, 107, 53, 0.2) 75%, 
        transparent 100%);
    transform: translateY(-50%);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Categories */
.bonuscards-categories {
    margin-top: 20px;
}

.bonuscards-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bonuscards-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.bonuscards-category-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.bonuscards-category-item.active {
    background: var(--primary-gradient);
    color: white;
}

.category-name {
    font-weight: 500;
    font-size: 14px;
}

.category-count {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.bonuscards-category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Favorites Toggle - Enhanced Elementor compatibility */
.bonuscards-main-wrapper .bonuscards-favorites-toggle {
    margin-bottom: 8px !important;
}

.bonuscards-main-wrapper .bonuscards-favorites-btn,
.elementor-widget-container .bonuscards-main-wrapper .bonuscards-favorites-btn,
.elementor-element .bonuscards-main-wrapper .bonuscards-favorites-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    background: var(--primary-gradient) !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    font-family: inherit !important;
}

.bonuscards-main-wrapper .bonuscards-favorites-btn:hover,
.elementor-widget-container .bonuscards-main-wrapper .bonuscards-favorites-btn:hover,
.elementor-element .bonuscards-main-wrapper .bonuscards-favorites-btn:hover {
    transform: translateX(3px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
    background: var(--primary-gradient) !important;
    color: white !important;
}

.bonuscards-main-wrapper .bonuscards-favorites-btn.active,
.elementor-widget-container .bonuscards-main-wrapper .bonuscards-favorites-btn.active,
.elementor-element .bonuscards-main-wrapper .bonuscards-favorites-btn.active {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
}

.bonuscards-main-wrapper .bonuscards-favorites-btn .favorites-text {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: inherit !important;
    font-weight: inherit !important;
}

.bonuscards-main-wrapper .bonuscards-favorites-count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    min-width: 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.bonuscards-main-wrapper .bonuscards-favorites-btn:hover .bonuscards-favorites-count {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Dark theme adjustments for favorites button */
[data-theme="dark"] .bonuscards-main-wrapper .bonuscards-favorites-btn,
[data-theme="dark"] .elementor-widget-container .bonuscards-main-wrapper .bonuscards-favorites-btn,
[data-theme="dark"] .elementor-element .bonuscards-main-wrapper .bonuscards-favorites-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
}

[data-theme="dark"] .bonuscards-main-wrapper .bonuscards-favorites-btn:hover {
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5) !important;
}

[data-theme="dark"] .bonuscards-main-wrapper .bonuscards-favorites-btn.active {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.6) !important;
}

/* Cards Grid */
.bonuscards-cards-container {
    flex: 1;
}

.bonuscards-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Cards List - Horizontal Layout */
.bonuscards-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Horizontal Card Styles */
.bonuscards-card-horizontal {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bonuscards-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.bonuscards-card-horizontal .bonuscards-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
}

.bonuscards-card-horizontal .bonuscards-card-content {
    flex: 1;
    margin: 0;
}

.bonuscards-card-horizontal .bonuscards-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bonuscards-card-horizontal .bonuscards-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bonuscards-card-horizontal .bonuscards-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bonuscards-card-horizontal .bonuscards-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.bonuscards-card-horizontal .bonuscards-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bonuscards-card-horizontal .bonuscards-favorite-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.bonuscards-card-horizontal .bonuscards-favorite-btn:hover {
    transform: scale(1.2);
}

.bonuscards-card-horizontal .bonuscards-favorite-btn .heart-filled {
    display: none;
}

.bonuscards-card-horizontal .bonuscards-favorite-btn.active .heart-empty {
    display: none;
}

.bonuscards-card-horizontal .bonuscards-favorite-btn.active .heart-filled {
    display: inline;
    color: #ff1744 !important;
}

.bonuscards-card-horizontal .bonuscards-claim-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.bonuscards-card-horizontal .bonuscards-claim-btn:visited {
    color: white;
}

.bonuscards-card-horizontal .bonuscards-claim-btn:disabled,
.bonuscards-card-horizontal .bonuscards-claim-btn.disabled {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.bonuscards-card-horizontal .bonuscards-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.bonuscards-card-horizontal .bonuscards-claim-btn:active {
    transform: translateY(0);
}

/* Card Styles */
.bonuscards-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bonuscards-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bonuscards-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bonuscards-card:hover::before {
    transform: scaleX(1);
}

.bonuscards-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.bonuscards-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.bonuscards-favorite-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.bonuscards-favorite-btn:hover {
    transform: scale(1.2);
}

.bonuscards-favorite-btn .heart-filled {
    display: none;
    color: #ff1744;
}

.bonuscards-favorite-btn.active .heart-empty {
    display: none;
}

.bonuscards-favorite-btn.active .heart-filled {
    display: inline;
    color: #ff1744 !important;
}

.bonuscards-card-content {
    margin-bottom: 20px;
}

.bonuscards-card-title-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.bonuscards-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.bonuscards-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bonuscards-badge-new {
    background: #4ade80;
    color: white;
}

.bonuscards-badge-weekly {
    background: #fbbf24;
    color: #1f2937;
}

.bonuscards-badge-vip {
    background: #a78bfa;
    color: white;
}

.bonuscards-badge-daily {
    background: #f87171;
    color: white;
}

.bonuscards-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.bonuscards-card-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.bonus-amount,
.free-spins {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.bonuscards-card-footer {
    display: flex;
    justify-content: center;
}

.bonuscards-claim-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.bonuscards-claim-btn:visited {
    color: white;
}

.bonuscards-claim-btn:disabled,
.bonuscards-claim-btn.disabled {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.bonuscards-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.bonuscards-claim-btn:active {
    transform: translateY(0);
}

/* No Results */
.bonuscards-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.bonuscards-no-results p.no-results-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bonuscards-no-results p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bonuscards-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bonuscards-header {
        flex-direction: column;
        text-align: center;
    }
    
    .bonuscards-search-input {
        width: 200px;
    }
    
    .bonuscards-search-input:focus {
        width: 250px;
    }
    
    .bonuscards-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .bonuscards-card-horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .bonuscards-card-horizontal .bonuscards-card-actions {
        width: 100%;
        justify-content: center;
    }
    
    .bonuscards-card-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mobile responsive for reset button */
    .bonuscards-reset-filters {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .bonuscards-main-wrapper {
        padding: 10px;
    }
    
    .bonuscards-main-wrapper .bonuscards-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .bonuscards-sidebar {
        padding: 15px;
    }
    
    .bonuscards-card {
        padding: 15px;
    }
}