/*
 * Bileşen: ER-Slider
 * Kullanım:
 * <div class="er-slider" id="mainSlider">
 *   <div class="er-slider-container">
 *     <div class="er-slide">...</div>
 *   </div>
 *   <div class="er-slider-nav"></div> <!-- Dotlar otomatik oluşur -->
 *   <div class="er-slider-arrows">
 *     <div class="er-slider-arrow prev"><i data-lucide="chevron-left"></i></div>
 *     <div class="er-slider-arrow next"><i data-lucide="chevron-right"></i></div>
 *   </div>
 * </div>
 */

.er-slider {
    position: relative;
    width: 100%;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
}

.er-slider-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.er-slide {
    min-width: 100%;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.er-slide-img {
    width: 280px;
    height: 180px;
    background: #E2E8F0;
    border-radius: 12px;
    object-fit: cover;
}

.er-slide-content {
    flex: 1;
}

.er-slider-nav {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.er-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.er-slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.er-slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 10;
}

.er-slider-arrow {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.er-slider-arrow:hover {
    background: var(--bg-card);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Primary Style Arrow (Solid to Hollow) */
.er-slider-arrow-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.er-slider-arrow-primary:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}
