/* ============================
   SON HABERLER 2 - WIDGET STYLE
   ============================ */

.sonhaberlerwidget2 {
    font-family: system-ui, -apple-system, sans-serif;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.dark-theme .sonhaberlerwidget2,
body.info-dark .sonhaberlerwidget2 {
    background: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Header */
.shw2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.shw2-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shw2-header-icon {
    font-size: 16px;
    color: var(--theme-color, #e30613);
}

.shw2-header-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
}

body.dark-theme .shw2-header-title,
body.info-dark .shw2-header-title {
    color: #f0f0f0;
}

/* Navigation Controls */
.shw2-controls {
    display: flex;
    gap: 6px;
}

.shw2-nav-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 11px;
    transition: all 0.2s ease;
}

.shw2-nav-btn:hover {
    background: #e0e0e0;
    color: #333;
}

body.dark-theme .shw2-nav-btn,
body.info-dark .shw2-nav-btn {
    background: #2a2a2a;
    color: #888;
}

body.dark-theme .shw2-nav-btn:hover,
body.info-dark .shw2-nav-btn:hover {
    background: #333;
    color: #fff;
}

/* List */
.shw2-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.shw2-list::-webkit-scrollbar {
    width: 4px;
}

.shw2-list::-webkit-scrollbar-track {
    background: transparent;
}

.shw2-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

body.dark-theme .shw2-list,
body.info-dark .shw2-list {
    scrollbar-color: #444 transparent;
}

body.dark-theme .shw2-list::-webkit-scrollbar-thumb,
body.info-dark .shw2-list::-webkit-scrollbar-thumb {
    background: #444;
}

/* Item */
.shw2-item {
    border-bottom: 1px solid #f0f0f0;
}

.shw2-item:last-child {
    border-bottom: none;
}

body.dark-theme .shw2-item,
body.info-dark .shw2-item {
    border-bottom-color: #2a2a2a;
}

/* Card */
.shw2-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-radius: 8px;
}

.shw2-card:hover {
    background: #fafafa;
}

body.dark-theme .shw2-card:hover,
body.info-dark .shw2-card:hover {
    background: #252525;
}

/* Image */
.shw2-image-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

body.dark-theme .shw2-image-wrap,
body.info-dark .shw2-image-wrap {
    background: #2a2a2a;
}

.shw2-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shw2-card:hover .shw2-image-wrap img {
    transform: scale(1.05);
}

/* Type Badge */
.shw2-type-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

/* Content */
.shw2-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

/* Time */
.shw2-time {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.shw2-time i {
    font-size: 10px;
}

body.dark-theme .shw2-time,
body.info-dark .shw2-time {
    color: #666;
}

/* Title */
.shw2-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

body.dark-theme .shw2-title,
body.info-dark .shw2-title {
    color: #e0e0e0;
}

.shw2-card:hover .shw2-title {
    color: var(--theme-color, #e30613);
}

body.dark-theme .shw2-card:hover .shw2-title,
body.info-dark .shw2-card:hover .shw2-title {
    color: var(--theme-color, #ff6b6b);
}