/* ============================================
   Nawwal Custom Slider - CSS
   ============================================ */

.nawwal-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #000;
}

.nawwal-slider {
    position: relative;
    width: 100%;
    padding-bottom: 57.8125%; /* 1280:740 Aspect Ratio */
    overflow: hidden;
}

/* Slide Container */
.nawwal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nawwal-slide a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 15;
}

.nawwal-slide.active {
    opacity: 1;
    z-index: 10;
}

/* Slide Content - Text Animation */
.slide-content {
    position: relative;
    z-index: 20;
    text-align: center;
    color: #fff;
    animation: nawwal-slideDown 0.6s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

.nawwal-slide.active .slide-content {
    animation: nawwal-slideDown 0.6s ease-out 1s forwards;
}

/* Slide Down Animation (Text) */
@keyframes nawwal-slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Title */
.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 20px 40px;
    color: #ffffff;
    border: 2px solid #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: inline-block;
}

/* Fancy Caption Container */
.fancy-caption {
    width: 365px;
    margin: 0 auto;
}

.fancy-slider-info {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.fancy-slider-caption {
    font-size: 1rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
}

/* ============================================
   Navigation Dots
   ============================================ */

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: default;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

/* ============================================
   Progress Bar
   ============================================ */

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.15);
    width: 0;
    z-index: 25;
    animation: nawwal-progress 9s linear infinite;
}

@keyframes nawwal-progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets (1024px und kleiner) */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 2.5rem;
        padding: 15px 30px;
        border: 2px solid #ffffff;
    }
    
    .fancy-caption {
        width: 100%;
        padding: 0 20px;
    }
    
    .slider-dots {
        bottom: 25px;
        gap: 12px;
    }
}

/* Small Tablets (768px und kleiner) */
@media (max-width: 768px) {
    .nawwal-slider {
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        padding: 12px 25px;
        border: 2px solid #ffffff;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .fancy-slider-info {
        font-size: 1rem;
    }
    
    .fancy-slider-caption {
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Mobile (480px und kleiner) */
@media (max-width: 480px) {
    .nawwal-slider {
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    }
    
    .slide-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
        padding: 10px 20px;
        border: 2px solid #ffffff;
    }
    
    .slide-content {
        padding: 0 15px;
    }
    
    .fancy-slider-info {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .fancy-slider-caption {
        font-size: 0.8rem;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-progress {
        height: 3px;
    }
}

/* Extra Small Devices (320px und kleiner) */
@media (max-width: 320px) {
    .slide-title {
        font-size: 1.2rem;
        padding: 8px 15px;
        border: 1px solid #ffffff;
    }
    
    .fancy-slider-info {
        font-size: 0.8rem;
    }
    
    .fancy-slider-caption {
        font-size: 0.7rem;
    }
}

/* ============================================
   Accessibility & Performance
   ============================================ */

/* Reduce motion für Nutzer mit Bewegungsempfindlichkeit */
@media (prefers-reduced-motion: reduce) {
    .nawwal-slide {
        transition: opacity 0.3s ease-in-out;
    }
    
    .slide-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .dot {
        transition: none;
    }
    
    .slider-progress {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .nawwal-slider-wrapper {
        display: none;
    }
}
