/* SonHaberler Component Stilleri */

.horizontal-news {
    --sh-color: var(--theme-color, #c8102e);
    --sh-bg: #fff;
    --sh-text: #333;
    --sh-shadow: rgba(0, 0, 0, 0.1);

    margin: 40px auto;
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    display: block;
}

.horizontal-news .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.horizontal-news .section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--sh-text);
    position: relative;
    padding-left: 15px;
    margin: 0;
}

.horizontal-news .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 6px;
    background-color: var(--sh-color);
    border-radius: 4px;
}

.horizontal-news .section-nav {
    display: flex;
    gap: 8px;
}

.horizontal-news .section-nav button {
    border: 1px solid var(--sh-color);
    color: var(--sh-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.horizontal-news .section-nav button:hover {
    background-color: var(--sh-color);
    color: #fff;
}

.horizontal-news .horizontal-news-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 10px;
}

.horizontal-news .horizontal-news-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.horizontal-news .news-item {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--sh-bg);
    box-shadow: 0 5px 15px var(--sh-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.horizontal-news .news-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.horizontal-news .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--sh-shadow);
}

.horizontal-news .news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.horizontal-news .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.horizontal-news .news-item:hover .news-image img {
    transform: scale(1.05);
}

.horizontal-news .news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    background-color: var(--sh-color);
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.horizontal-news .news-details {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.horizontal-news .news-details h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--sh-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.horizontal-news .news-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #777;
    margin-top: auto;
    font-weight: 600;
}

.horizontal-news .news-meta i {
    margin-right: 6px;
    opacity: 0.8;
}

/* Dark Theme */
body.info-dark .horizontal-news,
body.dark-theme .horizontal-news {
    --sh-bg: #1e1e1e;
    --sh-text: #f8f9fa;
    --sh-shadow: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .horizontal-news .news-item {
        flex: 0 0 calc(33.333% - 13.33px);
        min-width: calc(33.333% - 13.33px);
    }
}

@media (max-width: 768px) {
    .horizontal-news .news-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .horizontal-news .section-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .horizontal-news .news-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
}