/* Campaign Loader Styles */

/* Banner Carousel Styles */
.campaign-banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
    transition: all 0.3s ease-out;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.campaign-banner-carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0;
    animation: progressBar 5s linear infinite;
    z-index: 11;
}

.campaign-banner-carousel:hover::after {
    animation-play-state: paused;
}

@keyframes progressBar {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.carousel-slides {
    position: relative;
    width: 100%;
    min-height: 100px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Minimalistic Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.carousel-dot {
    width: 2px !important;
    height: 2px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: white;
    width: 5px !important;
    border-radius: 0.5px;
}

/* Banner Styles (legacy - kept for compatibility) */
.campaign-banner {
    position: relative;
    width: 100%;
    animation: slideInDown 0.5s ease-out;
    transition: all 0.3s ease-out;
}

.campaign-banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.campaign-banner-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Modal Styles */
.campaign-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.campaign-modal.show {
    opacity: 1;
}

.campaign-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.campaign-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease-out;
    z-index: 1;
}

.campaign-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.campaign-close:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Notification Styles */
.campaign-notification {
    position: fixed;
    bottom: 20px;
    right: -400px;
    max-width: 380px;
    background: white;
    border-radius: 12px;
    padding: 20px 20px 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    border-left: 4px solid #4CAF50;
    transition: right 0.4s ease-out;
}

.campaign-notification.show {
    right: 20px;
}

.campaign-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

.campaign-notification-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: rotate(90deg);
}

/* Countdown Styles */
.campaign-countdown {
    position: relative;
    width: 100%;
    padding: 35px 20px 30px;
    margin: 15px 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: fadeInScale 0.5s ease-out;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.campaign-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.campaign-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.campaign-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.campaign-countdown-value {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
}

.campaign-countdown-label {
    font-size: 0.875em;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.7;
}

.campaign-countdown-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: 300;
    backdrop-filter: blur(10px);
}

.campaign-countdown-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Custom Campaign Container */
.campaign-custom {
    position: relative;
    animation: fadeIn 0.5s ease-out;
    transition: all 0.3s ease-out;
}

.campaign-custom-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.campaign-custom-close:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .campaign-modal-content {
        max-width: 95%;
        margin: 10px;
        border-radius: 12px;
    }
    
    .campaign-notification {
        max-width: calc(100% - 40px);
        right: -100%;
        bottom: 10px;
    }
    
    .campaign-notification.show {
        right: 10px;
    }
    
    .campaign-countdown {
        padding: 30px 15px 25px;
        border-radius: 12px;
    }
    
    .campaign-countdown-value {
        font-size: 1.5em;
    }
    
    .campaign-countdown-unit {
        min-width: 50px;
    }
    
    .campaign-countdown-timer {
        gap: 10px;
    }
    
    .campaign-close,
    .campaign-notification-close,
    .campaign-countdown-close,
    .campaign-custom-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    /* Carousel responsive */
    .carousel-dots {
        bottom: 6px;
        padding: 3px 6px;
        gap: 4px;
    }
    
    .carousel-dot {
        width: 4px;
        height: 4px;
    }
    
    .carousel-dot.active {
        width: 12px;
    }
    
    .campaign-banner-carousel {
        border-radius: 0 0 8px 8px;
    }
}

/* Campaign container for positioning */
.campaign-container {
    position: relative;
    z-index: 1000;
}

/* Click tracking cursor */
.campaign-clickable {
    cursor: pointer;
}

.campaign-clickable:hover {
    opacity: 0.9;
}

/* Campaign Content Utilities */
.campaign-content {
    position: relative;
    z-index: 1;
}

.campaign-modal-content .campaign-content,
.campaign-notification .campaign-content {
    padding: 20px;
}

/* Beautiful scrollbar for modal */
.campaign-modal-content::-webkit-scrollbar {
    width: 8px;
}

.campaign-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.campaign-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.campaign-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
