/**
 * Authors Slider - Professional & Clean Design
 * FIXED: Kırmızı arka plan sorunu tamamen çözüldü
 */

/* ========================================
   SECTION & CONTAINER
   ======================================== */

.authors-slider-section {
    margin: 20px 0;
    padding: 0;
    background: #fff;
}

.authors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background: transparent !important;
}

/* ========================================
   HEADER
   ======================================== */

.authors-slider-section .authors-header {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    margin-top: 0;
    background: transparent !important;
}

.authors-slider-section .authors-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--primary-color, #e74c3c);
}

.authors-slider-section .authors-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========================================
   SLIDER STRUCTURE
   ======================================== */

.authors-slider-section .authors-slider-wrapper {
    position: relative;
    padding: 0;
    margin-bottom: 0;
    background: transparent !important;
}

.authors-slider-section .authors-slider {
    overflow: hidden;
    width: 100%;
    background: transparent !important;
}

.authors-slider-section .authors-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    background: transparent !important;
}

/* ========================================
   AUTHOR CARD - BEYAZ ARKA PLAN
   ======================================== */

.authors-slider-section .author-card {
    flex: 0 0 calc(20% - 16px);
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.authors-slider-section .author-card:hover {
    /* Border color dynamic CSS'ten gelecek */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   AUTHOR LINK - BEYAZ ARKA PLAN
   ======================================== */

.authors-slider-section .author-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* ========================================
   AVATAR - GRİ ARKA PLAN
   ======================================== */

.authors-slider-section .author-avatar {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    margin-bottom: 0;
}

.authors-slider-section .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.authors-slider-section .author-card:hover .author-avatar img {
    transform: scale(1.05);
}

/* ========================================
   AUTHOR INFO - BEYAZ ARKA PLAN
   ======================================== */

.authors-slider-section .author-info {
    padding: 15px;
    padding-bottom: 10px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    margin-bottom: 0;
}

.authors-slider-section .author-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.authors-slider-section .author-latest-post {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

.authors-slider-section .authors-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    /* Background dynamic CSS'ten gelecek */
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.authors-slider-section .authors-nav:hover {
    /* Hover background dynamic CSS'ten gelecek */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.authors-slider-section .authors-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(245, 245, 245, 0.95) !important;
    background-color: rgba(245, 245, 245, 0.95) !important;
}

.authors-slider-section .authors-nav:disabled:hover {
    background: rgba(245, 245, 245, 0.95) !important;
    background-color: rgba(245, 245, 245, 0.95) !important;
    border-color: #ddd;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.authors-slider-section .authors-prev {
    left: 10px;
}

.authors-slider-section .authors-next {
    right: 10px;
}

.authors-slider-section .authors-nav svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   PAGINATION DOTS
   ======================================== */

.authors-slider-section .authors-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 0;
    padding-bottom: 0;
    background: transparent !important;
}

.authors-slider-section .authors-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.authors-slider-section .authors-pagination-dot.active {
    /* Background dynamic CSS'ten gelecek */
    width: 24px;
    border-radius: 4px;
}

.authors-slider-section .authors-pagination-dot:hover {
    /* Background dynamic CSS'ten gelecek */
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .authors-slider-section .author-card {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .authors-slider-section .author-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .authors-slider-section {
        margin: 20px 0 !important;
    }
    
    .authors-container {
        padding: 0 15px;
    }
    
    .authors-slider-section .authors-header {
        margin-bottom: 12px;
        gap: 12px;
        margin-top: 0;
        padding-top: 0;
    }
    
    .authors-slider-section .authors-title {
        font-size: 20px;
    }
    
    .authors-slider-section .authors-slider-wrapper {
        padding: 0;
        overflow: visible;
    }
    
    .authors-slider-section .authors-slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
    }
    
    .authors-slider-section .authors-slider::-webkit-scrollbar {
        display: none;
    }
    
    .authors-slider-section .authors-track {
        gap: 12px;
        padding: 0 5px;
    }
    
    .authors-slider-section .author-card {
        flex: 0 0 calc(100% - 10px);
        border-radius: 8px;
        scroll-snap-align: start;
    }
    
    .authors-slider-section .author-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .authors-slider-section .author-avatar {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }
    
    .authors-slider-section .author-info {
        flex: 1;
        padding: 0;
    }
    
    .authors-slider-section .authors-nav {
        display: none;
    }
    
    .authors-slider-section .author-name {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .authors-slider-section .author-latest-post {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .authors-slider-section .authors-pagination {
        margin-top: 0;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .authors-slider-section {
        margin: 20px 0 !important;
    }
    
    .authors-container {
        padding: 0 12px;
    }
    
    .authors-slider-section .authors-header {
        margin-bottom: 10px;
        gap: 10px;
        margin-top: 0;
        padding-top: 0;
    }
    
    .authors-slider-section .authors-header::after {
        display: none;
    }
    
    .authors-slider-section .authors-title {
        font-size: 18px;
    }
    
    .authors-slider-section .authors-track {
        gap: 10px;
    }
    
    .authors-slider-section .author-card {
        flex: 0 0 calc(100% - 10px);
        border-radius: 6px;
    }
    
    .authors-slider-section .author-link {
        padding: 12px;
        gap: 12px;
    }
    
    .authors-slider-section .author-avatar {
        width: 70px;
        height: 70px;
    }
    
    .authors-slider-section .author-name {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .authors-slider-section .author-latest-post {
        font-size: 13px;
    }
    
    .authors-slider-section .authors-pagination {
        margin-top: 0;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

.dark-mode .authors-slider-section {
    background: var(--dark-bg-primary, #121212);
}

.dark-mode .authors-slider-section .author-card {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
    border-color: #2a2a2a;
}

.dark-mode .authors-slider-section .author-link {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
}

.dark-mode .authors-slider-section .author-info {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
}

.dark-mode .authors-slider-section .author-name {
    color: #e8e8e8;
}

.dark-mode .authors-slider-section .author-latest-post {
    color: #999;
}

.dark-mode .authors-slider-section .authors-header::after {
    background: var(--primary-color, #e74c3c);
}

.dark-mode .authors-slider-section .authors-title {
    color: #e8e8e8;
}