/* Super Ace Sweepstakes Promo Component */
.super-ace-sweepstakes-promo {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--theme-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
    background: var(--theme-bg-primary, #ffffff);
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
}

/* Collapsible Header */
.sweepstakes-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        var(--theme-primary, #4a90e2) 0%, 
        var(--theme-accent, #e94e77) 25%, 
        var(--theme-success, #27ae60) 50%, 
        var(--theme-warning, #f39c12) 75%, 
        var(--theme-primary, #4a90e2) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: white;
    position: relative;
    border-radius: 1rem 1rem 0 0;
}

.sweepstakes-title-area {
    flex: 1;
}

.promo-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
}

.promo-badge-header i {
    font-size: 1rem;
}

.sweepstakes-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sweepstakes-header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sweepstakes-summary-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-stat-label {
    display: block;
    font-size: 0.75rem;
    color: white;
    margin-top: 0.25rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sweepstakes-toggle {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-weight: 600;
}

.sweepstakes-toggle:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    transform: translateY(-1px);
}

.sweepstakes-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.sweepstakes-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.sweepstakes-banner {
    position: relative;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
    background: var(--theme-bg-primary, #ffffff);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* Animated gradient background */
.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--theme-primary, #4a90e2) 0%, 
        var(--theme-accent, #e94e77) 25%, 
        var(--theme-success, #27ae60) 50%, 
        var(--theme-warning, #f39c12) 75%, 
        var(--theme-primary, #4a90e2) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 0% 100%; }
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    background: var(--theme-surface-1);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header section */
.promo-header {
    text-align: center;
    margin-bottom: 1rem;
}

/* Promo Image Container */
.promo-image {
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 250px; /* Ensure space while loading for 3:2 aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Image - optimized for 1536×1024px (3:2 aspect ratio) */
.sweepstakes-hero-image {
    max-width: 100%;
    height: auto;
    max-height: 500px; /* Increased to better show 1024px height image */
    width: auto;
    border-radius: 0.75rem;
    border: 3px solid var(--theme-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: contain; /* Ensure full image is visible */
    background: var(--theme-surface-2); /* Background while loading */
    aspect-ratio: 1536 / 1024; /* Maintain proper aspect ratio */
}

.sweepstakes-hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* Loading state for image */
.sweepstakes-hero-image.loading {
    background: linear-gradient(90deg, var(--theme-surface-2) 25%, var(--theme-surface-3) 50%, var(--theme-surface-2) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Promo badge */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e94e77;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(233, 78, 119, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.promo-badge i {
    font-size: 1rem;
}

/* Title */
.promo-title {
    color: var(--theme-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* Stats section - Compact side-by-side layout */
.promo-stats-compact {
    background: var(--theme-surface-2, #f8f9fa);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-border-color, #dee2e6);
    margin-bottom: 1rem;
    color: var(--theme-text-primary, #212529) !important;
}

/* Ensure all text within stats section has proper color */
.promo-stats-compact * {
    color: inherit;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-number-wrapper {
    flex-shrink: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--theme-primary, #3b82f6) !important;
    line-height: 1;
}

.stat-info {
    flex: 1;
    color: var(--theme-text-primary, #212529) !important;
}

.stat-main-text {
    color: var(--theme-text-primary, #212529) !important;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.stat-sub-text {
    color: var(--theme-text-secondary, #6c757d) !important;
    font-size: 0.9rem;
    font-style: italic;
}

.stat-sub-text i {
    color: var(--theme-info);
    margin-right: 0.25rem;
}

.stat-label {
    color: var(--theme-text-primary, #212529);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Upload motivation section */
.upload-motivation {
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6) 0%, var(--theme-primary-hover, #2563eb) 100%);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.motivation-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.motivation-text i {
    color: rgba(255, 255, 255, 0.9);
}

.uploaded-count {
    color: #FFE066;
    font-weight: 800;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.motivation-subtext {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
}

/* Pulse animation for counter completion */
@keyframes pulseOnce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--theme-accent); }
    100% { transform: scale(1); }
}

.pulse-once {
    animation: pulseOnce 0.5s ease-in-out;
}

/* Prize info standalone */
.prize-info-standalone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--theme-surface-2);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-border-color);
    box-shadow: var(--theme-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
    margin-bottom: 1rem;
}

.prize-info-standalone i {
    color: var(--theme-warning, #f39c12);
    font-size: 1.25rem;
}

.prize-info-standalone span {
    color: var(--theme-text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Countdown timer */
.countdown-container {
    margin-top: 1rem;
}

.countdown-label {
    color: var(--theme-text-primary, #212529);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.countdown-timer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--theme-surface-3, var(--theme-surface-2));
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--theme-border-color);
    box-shadow: var(--theme-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
    min-width: 80px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary);
    line-height: 1;
}

.countdown-unit {
    font-size: 0.75rem;
    color: var(--theme-text-secondary, #6c757d);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Actions section */
.promo-actions {
    text-align: center;
    position: relative;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: #e94e77;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(233, 78, 119, 0.4);
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.upload-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--theme-accent, #e94e77);
    transform: translate(-50%, -50%);
    animation: pulseRing 2s infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Upload button */
.btn-upload-now {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e94e77, #4a90e2);
    color: white !important;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(233, 78, 119, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.btn-upload-now::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;
}

.btn-upload-now:hover::before {
    left: 100%;
}

.btn-upload-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 78, 119, 0.4);
    text-decoration: none;
    color: white !important;
    background: linear-gradient(135deg, #f06292, #64b5f6);
}

.btn-upload-now:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
    color: white !important;
}

.btn-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: white !important;
}

.btn-upload-now:hover .btn-arrow {
    transform: translateX(4px);
}

/* Ensure button text stays white in all themes */
a.btn-upload-now,
a.btn-upload-now:visited,
a.btn-upload-now:focus,
a.btn-upload-now:active {
    color: white !important;
}

/* Gallery button */
.btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-surface-2);
    color: var(--theme-text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--theme-border-color);
    transition: all 0.3s ease;
}

.btn-gallery:hover {
    background: var(--theme-surface-3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--theme-text-primary);
}

/* Stat link */
.stat-link {
    color: var(--theme-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.stat-link:hover {
    color: var(--theme-primary);
    text-decoration: none;
}

.stat-link i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.upload-description {
    color: var(--theme-text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 500px;
    margin: 0.5rem auto 0;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 991px) {
    .promo-image {
        margin-bottom: 1rem;
    }
    
    .sweepstakes-hero-image {
        max-height: 200px;
    }
    
    .sweepstakes-header {
        padding: 1.25rem;
    }
    
    .sweepstakes-header-controls {
        gap: 1rem;
    }
    
    .sweepstakes-summary-stats {
        gap: 0.75rem;
    }
    
    .header-stat {
        padding: 0.375rem 0.5rem;
    }
    
    .header-stat-number {
        font-size: 1.125rem;
    }
    
    .sweepstakes-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .banner-content {
        padding: 1.5rem;
    }
    
    .promo-title {
        font-size: 2rem;
    }
    
    /* Adjust hero image for tablet */
    .sweepstakes-hero-image {
        max-height: 400px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .upload-pulse {
        width: 60px;
        height: 60px;
    }
    
    .btn-upload-now {
        font-size: 1.1rem;
        padding: 0.875rem 1.75rem;
    }
    
    .countdown-timer {
        justify-content: center;
    }
    
    .countdown-segment {
        min-width: 70px;
        padding: 0.5rem 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.25rem;
    }
    
    .sweepstakes-header {
        padding: 1rem;
    }
    
    .sweepstakes-header-controls {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-end;
    }
    
    .sweepstakes-summary-stats {
        gap: 0.5rem;
    }
    
    .sweepstakes-title {
        font-size: 1rem;
    }
    
    .header-stat {
        padding: 0.25rem 0.5rem;
    }
    
    .header-stat-number {
        font-size: 1rem;
    }
    
    .header-stat-label {
        font-size: 0.6875rem;
    }
}

@media (max-width: 576px) {
    .promo-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Adjust hero image for mobile */
    .sweepstakes-hero-image {
        max-height: 300px;
    }
    
    .promo-image {
        min-height: 200px;
    }
    
    .promo-stats {
        margin-bottom: 1rem;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .upload-pulse {
        width: 50px;
        height: 50px;
    }
    
    .sweepstakes-header {
        padding: 0.75rem;
    }
    
    .sweepstakes-title-area .sweepstakes-title {
        font-size: 0.875rem;
    }
    
    .promo-badge-header {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .sweepstakes-summary-stats {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .header-stat {
        padding: 0.2rem 0.4rem;
        min-width: 60px;
    }
    
    .header-stat-number {
        font-size: 0.875rem;
    }
    
    .header-stat-label {
        font-size: 0.625rem;
    }
    
    .sweepstakes-toggle {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Dark Mode Specific Styles */
@media (prefers-color-scheme: dark) {
    .super-ace-sweepstakes-promo {
        background: #1e293b;
        border-color: rgba(100, 181, 246, 0.2);
    }
    
    .sweepstakes-header {
        /* Keep the gradient vibrant in dark mode */
        background: linear-gradient(135deg, 
            #4a90e2 0%, 
            #e94e77 25%, 
            #27ae60 50%, 
            #f39c12 75%, 
            #4a90e2 100%);
    }
    
    .sweepstakes-banner {
        background: #1e293b;
    }
    
    .banner-content {
        background: rgba(30, 41, 59, 0.95);
    }
    
    .banner-background {
        opacity: 0.08;
    }
    
    .promo-title {
        color: #e2e8f0;
    }
    
    .stat-number {
        color: #64b5f6;
    }
    
    .stat-label {
        color: #cbd5e1;
    }
    
    .prize-info {
        background: rgba(52, 73, 94, 0.5);
        border-color: rgba(100, 181, 246, 0.3);
    }
    
    .prize-info span {
        color: #e2e8f0;
    }
    
    .countdown-label {
        color: #cbd5e1;
    }
    
    .countdown-segment {
        background: #334155;
        border-color: rgba(100, 181, 246, 0.2);
    }
    
    .countdown-number {
        color: #64b5f6;
    }
    
    .countdown-unit {
        color: #94a3b8;
    }
    
    .upload-description {
        color: #cbd5e1;
    }
    
    /* Ensure buttons stay vibrant */
    .btn-upload-now {
        background: linear-gradient(135deg, #e94e77, #4a90e2);
        color: white;
        box-shadow: 0 8px 25px rgba(233, 78, 119, 0.4);
    }
    
    .btn-upload-now:hover {
        background: linear-gradient(135deg, #f06292, #64b5f6);
        box-shadow: 0 12px 35px rgba(233, 78, 119, 0.5);
    }
    
    .upload-icon {
        background: #e94e77;
        color: white;
    }
    
    .promo-badge {
        background: #e94e77;
        color: white;
    }
    
    .sweepstakes-hero-image {
        border-color: rgba(100, 181, 246, 0.3);
    }
    
    .sweepstakes-hero-image:hover {
        box-shadow: 0 8px 24px rgba(100, 181, 246, 0.2) !important;
    }
}