/**
 * Health Layout CSS
 * Sol: Büyük slider (ok butonları ile)
 * Sağ: 4 küçük haber kartı
 */

.category-health-layout {
    margin: 20px 0;
    padding: 0;
    background: #fff;
}

.category-health-layout .section-header {
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.category-health-layout .section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--primary-color, #e74c3c);
}

.category-health-layout .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Grid Layout */
.health-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Sol: Slider Wrapper */
.health-slider-wrapper {
    position: relative;
    width: 100%;
}

.health-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.health-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.health-slider-item.active {
    opacity: 1;
    z-index: 1;
}

.health-slider-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.slider-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.health-slider-item:hover .slider-image img {
    transform: scale(1.05);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    color: #fff;
}

.slider-badge {
    display: none;
}

.slider-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.slider-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slider-date::before {
    content: "📅";
    font-size: 14px;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* Slider Pagination */
.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Sağ: Küçük Kartlar - Slider ile aynı yükseklikte */
.health-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 500px; /* Slider ile aynı yükseklik */
    justify-content: space-between;
}

.health-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex: 1; /* Eşit yükseklik dağılımı */
    min-height: 0; /* Flex shrink için */
}

.health-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.health-card-link {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    align-items: center;
}

.health-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.health-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.health-card:hover .health-card-image img {
    transform: scale(1.1);
}

.health-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0; /* Text overflow için */
}

.health-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.health-card:hover .health-card-title {
    color: var(--primary-color, #e74c3c);
}

.health-card-date {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.health-card-date::before {
    content: "📅";
    font-size: 11px;
}

/* Responsive */
@media (max-width: 1024px) {
    .health-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .health-slider {
        height: 450px;
    }
    
    .slider-title {
        font-size: 28px;
    }
    
    .health-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-health-layout {
        margin: 20px 0;
    }
    
    .category-health-layout .section-header {
        margin-bottom: 12px;
        gap: 12px;
    }
    
    .category-health-layout .section-title {
        font-size: 20px;
    }
    
    .health-layout-grid {
        gap: 20px;
    }
    
    .health-slider {
        height: 400px;
        border-radius: 10px;
    }
    
    .slider-content {
        padding: 25px 20px;
    }
    
    .slider-title {
        font-size: 24px;
    }
    
    .slider-excerpt {
        font-size: 14px;
    }
    
    .slider-nav {
        width: 44px;
        height: 44px;
    }
    
    .slider-nav svg {
        width: 24px;
        height: 24px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .health-sidebar {
        grid-template-columns: 1fr;
        gap: 8px;
        height: auto;
    }
    
    .health-card {
        min-height: auto;
    }
    
    .health-card-link {
        padding: 12px;
    }
    
    .health-card-image {
        width: 90px;
        height: 90px;
    }
    
    .health-card-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .category-health-layout {
        margin: 20px 0;
    }
    
    .category-health-layout .section-header {
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .category-health-layout .section-header::after {
        display: block;
    }
    
    .category-health-layout .section-title {
        font-size: 18px;
    }
    
    .health-layout-grid {
        gap: 15px;
    }
    
    .health-slider {
        height: 320px;
        border-radius: 8px;
    }
    
    .slider-content {
        padding: 20px 15px;
    }
    
    .slider-title {
        font-size: 20px;
    }
    
    .slider-excerpt {
        display: none;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .health-sidebar {
        gap: 6px;
    }
    
    .health-card-link {
        padding: 10px;
    }
    
    .health-card-image {
        width: 80px;
        height: 80px;
    }
    
    .health-card-title {
        font-size: 14px;
    }
}

/* ============================================
   DARK MODE - Health Layout
   ============================================ */

body.dark-mode .category-health-layout {
    background: var(--dark-bg-primary);
}

body.dark-mode .category-health-layout .section-header::after {
    background: var(--primary-color, #e74c3c);
}

body.dark-mode .category-health-layout .section-title {
    color: var(--dark-text-primary);
}

/* Slider dark mode */
body.dark-mode .health-slider {
    background: var(--dark-bg-secondary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Slider overlay gradient'i dark mode'da hafif koyu */
body.dark-mode .slider-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

/* Badge dark mode */
body.dark-mode .slider-badge {
    background: var(--dark-accent);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

/* Slider başlık ve içerik zaten beyaz, koyu arka planda iyi görünür */
body.dark-mode .slider-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .slider-excerpt {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .slider-meta {
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation butonları dark mode */
body.dark-mode .slider-nav {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .slider-nav:hover {
    background: var(--dark-bg-secondary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .slider-nav svg {
    color: var(--dark-text-primary);
}

/* Pagination dots dark mode */
body.dark-mode .pagination-dot {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .pagination-dot.active {
    background: var(--dark-accent);
}

/* Sidebar kartları dark mode */
body.dark-mode .health-card {
    background: var(--dark-bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
}

body.dark-mode .health-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: var(--dark-border-hover);
}

body.dark-mode .health-card-image {
    background: var(--dark-bg-tertiary);
}

body.dark-mode .health-card-title {
    color: var(--dark-text-primary);
}

body.dark-mode .health-card:hover .health-card-title {
    color: var(--dark-accent);
}

body.dark-mode .health-card-date {
    color: var(--dark-text-secondary);
}