/* Haber Slider Manşet - Frontend Styles */

.nsm-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nsm-slider-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* 2:1 aspect ratio */
}

.nsm-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.nsm-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.nsm-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.nsm-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nsm-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.nsm-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.nsm-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

/* Badge kaldırıldı */

.nsm-slide-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.nsm-slide-description {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 10px 0 0 0;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    max-width: 800px;
}

/* Navigation Arrows */
.nsm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nsm-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.nsm-prev {
    left: 20px;
}

.nsm-next {
    right: 20px;
}

.nsm-nav svg {
    width: 24px;
    height: 24px;
}

/* Pagination Dots */
.nsm-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

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

.nsm-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.nsm-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nsm-slide-title {
        font-size: 36px;
    }
    
    .nsm-slide-description {
        font-size: 16px;
    }
    
    .nsm-slide-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .nsm-slider-wrapper {
        padding-bottom: 75%; /* More vertical on mobile */
    }
    
    .nsm-slide-title {
        font-size: 28px;
    }
    
    .nsm-slide-description {
        font-size: 14px;
    }
    
    .nsm-slide-content {
        padding: 20px;
    }
    
    .nsm-nav {
        width: 40px;
        height: 40px;
    }
    
    .nsm-prev {
        left: 10px;
    }
    
    .nsm-next {
        right: 10px;
    }
    
    .nsm-dot {
        width: 10px;
        height: 10px;
    }
    
    .nsm-pagination {
        bottom: 10px;
        padding: 6px 12px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .nsm-slider-wrapper {
        padding-bottom: 100%; /* Square on very small screens */
    }
    
    .nsm-slide-title {
        font-size: 22px;
    }
    
    .nsm-slide-description {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .nsm-nav {
        width: 35px;
        height: 35px;
    }
    
    .nsm-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Animation effects */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nsm-slide.active .nsm-slide-content {
    animation: slideInFromRight 0.8s ease-out;
}

/* Loading state */
.nsm-slider-container.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nsm-slider-container.loading::after {
    content: "Yükleniyor...";
    color: #fff;
    font-size: 18px;
}