/* Promotion Slider Styles */

.promotion-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.promotion-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.promotion-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.promotion-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    background-repeat: no-repeat;
    background-position: center;
}

.promotion-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.promotion-slide.active,
.promotion-slide-link.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.promotion-slide.fade-out,
.promotion-slide-link.fade-out {
    opacity: 0;
    z-index: 0;
}

/* Slide Overlay Content */
.promotion-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
}

.promotion-slide-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 30px;
    animation: slideContentIn 0.6s ease-out;
}

@keyframes slideContentIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.promotion-slide-description {
    font-size: 1.25rem;
    margin: 0 0 25px 0;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.promotion-slide-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.promotion-slide-link:hover .promotion-slide-button,
.promotion-slide:hover .promotion-slide-button {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation Arrows */
.promotion-slider-wrapper .promotion-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
    font-size: 0;
    overflow: hidden;
}

.promotion-slider-wrapper .promotion-slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.promotion-slider-wrapper .promotion-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.promotion-slider-wrapper .promotion-slider-prev {
    left: 15px;
}

.promotion-slider-wrapper .promotion-slider-next {
    right: 15px;
}

.promotion-slider-wrapper .promotion-slider-arrow svg {
    width: 14px;
    height: 14px;
    color: #000000;
    stroke-width: 2.5;
    display: block;
    flex-shrink: 0;
}

/* Dots Navigation */
.promotion-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.promotion-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.promotion-slider-dot:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.promotion-slider-dot.active {
    background-color: #333333;
    border-color: #ffffff;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .promotion-slider-wrapper[data-mobile-height] .promotion-slider-container {
        height: var(--mobile-height, 300px) !important;
    }
    
    .promotion-slide-title {
        font-size: 1.75rem;
    }
    
    .promotion-slide-description {
        font-size: 1rem;
    }
    
    .promotion-slide-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .promotion-slide-content {
        padding: 20px;
    }
    
    .promotion-slider-wrapper .promotion-slider-arrow {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
    
    .promotion-slider-wrapper .promotion-slider-prev {
        left: 10px;
    }
    
    .promotion-slider-wrapper .promotion-slider-next {
        right: 10px;
    }
    
    .promotion-slider-wrapper .promotion-slider-arrow svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .promotion-slide-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .promotion-slide-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .promotion-slide-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .promotion-slide-content {
        padding: 15px;
    }
    
    .promotion-slider-wrapper .promotion-slider-arrow {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        max-width: 26px;
        max-height: 26px;
    }
    
    .promotion-slider-wrapper .promotion-slider-arrow svg {
        width: 11px;
        height: 11px;
    }
    
    .promotion-slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Accessibility */
.promotion-slider-arrow:focus,
.promotion-slider-dot:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Loading State */
.promotion-slider-wrapper.loading .promotion-slide {
    opacity: 0;
}

.promotion-slider-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
