/* Sidebar Offers Widget Styles */

/* Desktop: No scrollbars */
@media (min-width: 769px) {
    .sidebar-offers-wrapper,
    .sidebar-offers-container,
    .sidebar-offers-list {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

.sidebar-offers-wrapper {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: #0f172a;
    line-height: 1.6;
    padding: 0;
    font-weight: 400;
    width: 100%;
    overflow: visible; /* No scrollbars on desktop */
}

.sidebar-offers-container {
    max-width: 350px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    overflow: visible; /* Allow content to overflow for scrolling */
    border: none;
    width: 100%;
}

.sidebar-offers-container::before {
    display: none;
}

.sidebar-offers-container::after {
    display: none;
}

@keyframes sidebar-offers-luxury-shimmer {
    0%, 100% { 
        background-position: -200% 0;
        opacity: 0.7;
    }
    50% { 
        background-position: 300% 0;
        opacity: 1;
    }
}

.sidebar-offers-header-section {
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 30px rgba(15, 23, 42, 0.12),
        0 8px 16px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-offers-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.12), transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.sidebar-offers-header-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-offers-spins-icon {
    font-size: 20px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 6px rgba(249, 115, 22, 0.4));
}

.sidebar-offers-top-text {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-offers-offers-text {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-offers-color-divider {
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6);
    margin: 20px 0;
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar-offers-color-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: sidebar-offers-divider-shine 3s ease-in-out infinite;
}

@keyframes sidebar-offers-divider-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.sidebar-offers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: visible; /* No scrollbars on desktop */
}

.sidebar-offers-casino-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 
        0 10px 20px rgba(15, 23, 42, 0.06),
        0 5px 10px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-offers-casino-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 30px rgba(15, 23, 42, 0.1),
        0 8px 16px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(148, 163, 184, 0.08);
}

.sidebar-offers-casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.03), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.02), transparent 50%);
    pointer-events: none;
    border-radius: 14px;
    z-index: 1;
}

.sidebar-offers-casino-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.sidebar-offers-casino-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-offers-casino-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(124, 58, 237, 0.1));
    pointer-events: none;
}

.sidebar-offers-casino-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    min-width: 0;
}

.sidebar-offers-casino-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sidebar-offers-star-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
}

.sidebar-offers-star {
    font-size: 12px;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

.sidebar-offers-star-empty {
    color: #e5e7eb;
}

.sidebar-offers-spins-offer {
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.sidebar-offers-spins-number {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
}

/* Animated Spins Styles */
.animated-spins {
    position: relative;
    display: inline-block;
    animation: spins-pulse 2s ease-in-out infinite;
}

.animated-spins.counting {
    animation: spins-counting 0.05s ease-in-out;
    transform: scale(1.1);
}

@keyframes spins-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.2));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.4));
    }
}

@keyframes spins-counting {
    0%, 100% { 
        transform: scale(1.1);
    }
    50% { 
        transform: scale(1.15);
    }
}

/* Glow effect when animating */
.animated-spins.glow {
    animation: spins-glow 1s ease-in-out;
}

@keyframes spins-glow {
    0% { 
        filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.2));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.6));
        transform: scale(1.2);
    }
    100% { 
        filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.2));
        transform: scale(1);
    }
}

.sidebar-offers-spins-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.sidebar-offers-offer-details {
    background: rgba(124, 58, 237, 0.04);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    position: relative;
    z-index: 2;
}

.sidebar-offers-wagering-info {
    font-size: 11px;
    color: #7c3aed;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.sidebar-offers-claim-button {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 12px rgba(249, 115, 22, 0.2),
        0 3px 6px rgba(249, 115, 22, 0.12);
    position: relative;
    overflow: hidden;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: block;
    text-align: center;
}

.sidebar-offers-claim-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sidebar-offers-claim-button:hover::before {
    left: 100%;
}

.sidebar-offers-claim-button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 16px rgba(249, 115, 22, 0.3),
        0 4px 8px rgba(249, 115, 22, 0.2);
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: white;
    text-decoration: none;
}

.sidebar-offers-claim-button:active {
    transform: translateY(0);
}

/* Full Width Desktop */
@media (min-width: 769px) {
    .sidebar-offers-wrapper {
        width: 100%;
        padding: 0;
        min-height: auto; /* Remove min-height on desktop */
        overflow: visible; /* No scrollbars on desktop */
    }
    
    .sidebar-offers-container {
        width: 100%;
        max-width: none;
        overflow: visible; /* No scrollbars on desktop */
        height: auto; /* Auto height on desktop */
    }
    
    .sidebar-offers-list {
        overflow: visible; /* No scrollbars on desktop */
        max-height: none; /* No height restriction */
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar-offers-wrapper {
        padding: 0;
        margin: 0;
        min-height: 100vh;
        width: 100%;
        overflow-y: auto; /* Auto scroll on mobile */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        position: relative;
    }
    
    .sidebar-offers-container {
        padding: 20px 16px;
        margin: 2px;
        border-radius: 20px;
        min-height: calc(100vh - 4px);
        max-width: calc(100% - 4px);
        width: calc(100% - 4px);
        /* Remove fixed height to allow scrolling with more cards */
        overflow: visible;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .sidebar-offers-header-section {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .sidebar-offers-header-title {
        font-size: 16px;
        gap: 6px;
    }

    .sidebar-offers-spins-icon {
        font-size: 18px;
    }

    .sidebar-offers-list {
        gap: 12px;
        flex: 1;
        overflow: visible;
        padding-bottom: 20px; /* Extra space for scrolling */
    }

    .sidebar-offers-casino-card {
        padding: 16px;
        border-radius: 12px;
    }

    .sidebar-offers-casino-header {
        gap: 6px;
        margin-bottom: 12px;
    }

    .sidebar-offers-casino-logo {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 6px;
    }

    .sidebar-offers-casino-name {
        font-size: 15px;
    }

    .sidebar-offers-star {
        font-size: 11px;
    }

    .sidebar-offers-spins-number {
        font-size: 22px;
    }

    .sidebar-offers-spins-text {
        font-size: 12px;
    }

    .sidebar-offers-offer-details {
        padding: 8px;
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .sidebar-offers-wagering-info {
        font-size: 10px;
    }

    .sidebar-offers-claim-button {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
    }

    .sidebar-offers-color-divider {
        margin: 16px 0;
    }
    
    /* Enable smooth scrolling on mobile */
    .sidebar-offers-wrapper {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
        scroll-behavior: smooth; /* Smooth scrolling */
        overscroll-behavior: contain; /* Prevent over-scroll */
    }
    
    .sidebar-offers-container {
        overflow: visible !important;
        height: auto !important; /* Ensure auto height */
        max-height: none !important; /* No height limit */
        position: relative !important;
    }
    
    .sidebar-offers-list {
        overflow: visible !important;
        flex-shrink: 0; /* Prevent shrinking */
        padding-bottom: 20px; /* Extra space at bottom */
    }
}

/* Mobile Fullsize Mode */
@media (max-width: 768px) {
    .sidebar-offers-mobile-fullsize .sidebar-offers-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 100vh !important;
        width: 100% !important;
    }
    
    .sidebar-offers-mobile-fullsize .sidebar-offers-container {
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 100vh !important;
        max-width: 100% !important;
        width: 100% !important;
        /* Remove fixed height to allow scrolling with more cards */
        padding: 20px 15px !important;
        border: none !important;
    }
    
    .sidebar-offers-mobile-fullsize .sidebar-offers-container::before {
        border-radius: 0 !important;
    }
    
    .sidebar-offers-mobile-fullsize .sidebar-offers-container::after {
        border-radius: 0 !important;
    }
    
    .sidebar-offers-mobile-fullsize .sidebar-offers-header-section {
        border-radius: 12px !important;
    }
    
    .sidebar-offers-mobile-fullsize .sidebar-offers-casino-card {
        border-radius: 10px !important;
    }
}

/* Elementor Editor Protection - Ne befolyásolja a szerkesztő felületét */
.elementor-widget-sidebar-offers .sidebar-offers-wrapper {
    min-height: auto;
}

/* Loading Animation */
.sidebar-offers-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.sidebar-offers-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(249, 115, 22, 0.3);
    border-top-color: #f97316;
    border-radius: 50%;
    animation: sidebar-offers-loading-spin 1s linear infinite;
    z-index: 1000;
}

@keyframes sidebar-offers-loading-spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.sidebar-offers-claim-button:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar-offers-wrapper {
        background: white !important;
        box-shadow: none !important;
    }
    
    .sidebar-offers-container::before,
    .sidebar-offers-container::after,
    .sidebar-offers-casino-card::before {
        display: none !important;
    }
} 