.kw {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin: 20px 0;
    overflow: hidden;
}

/* HEADER - SAYILAR */
.kw-head {
    display: flex;
    background: linear-gradient(135deg, #6d1f1f 0%, #8b2525 100%);
}
.kw-stat {
    flex: 1;
    text-align: center;
    padding: 18px 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background 0.2s;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.kw-stat:last-child { border-right: none; }
.kw-stat:hover { background: rgba(255,255,255,0.12); }
.kw-stat .n {
    font-size: 28px;
    font-weight: 700;
    display: block;
    color: #ffffff !important;
    line-height: 1.1;
}
.kw-stat .l {
    font-size: 11px;
    color: rgba(255,255,255,0.85) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 4px;
}

/* TABS */
.kw-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 0 15px;
    gap: 2px;
    overflow-x: auto;
}
.kw-tabs::-webkit-scrollbar { display: none; }
.kw-tab {
    background: none;
    border: none;
    padding: 14px 15px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.kw-tab svg { width: 15px; height: 15px; }
.kw-tab:hover { color: #8b2525; }
.kw-tab.on { color: #8b2525; border-bottom-color: #8b2525; font-weight: 600; }

.kw-pane { display: none; padding: 20px; min-height: 200px; }
.kw-pane.on { display: block; }
.loading { text-align: center; padding: 40px; color: #999; }

/* KONULAR - GRID */
.topic-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 1024px) { .topic-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .topic-list { grid-template-columns: repeat(2, 1fr); } }
.topic-box {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    min-height: 70px;
}
.topic-letter {
    width: 36px;
    height: 36px;
    background: #8b2525;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-right: 10px;
}
.topic-txt .t {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.topic-txt .s { font-size: 11px; color: #888; margin-top: 2px; }

/* CAROUSEL */
.book-carousel { position: relative; padding: 0 10px; }
.book-carousel-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none;
}
.book-carousel-inner::-webkit-scrollbar { display: none; }
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: #8b2525;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    z-index: 10;
}
.carousel-nav.prev { left: -5px; }
.carousel-nav.next { right: -5px; }
.book-card {
    flex-shrink: 0;
    width: 115px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.book-card:hover { transform: translateY(-3px); text-decoration: none; color: inherit; }
.cover-wrap {
    width: 115px;
    height: 160px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 7px;
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.book-card .bt {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-card .ba {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.more-btn {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #8b2525;
    color: white !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
}
.more-btn:hover { background: #6d1f1f; }

/* İSTATİSTİK */
.stat-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.stat-chart h4 { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 15px; text-align: center; }
.stat-chart canvas { max-width: 180px; display: block; margin: 0 auto; }
.stat-legend { margin-top: 12px; }
.stat-legend div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; margin-bottom: 5px; }
.stat-legend span { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.stat-tables { display: flex; flex-direction: column; gap: 15px; }
.stat-tbl-h {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #8b2525;
}
.stat-tbl-r {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}
.stat-tbl-r:hover { background: #f5f5f5; color: #333; text-decoration: none; }
.stat-tbl-r .v { font-weight: 600; color: #8b2525; display: flex; align-items: center; gap: 5px; }
.stat-tbl-r .p { font-size: 11px; color: #999; font-weight: 400; }

/* KULLANIM */
.use-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.use-card {
    text-align: center;
    padding: 18px 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fafafa;
}
.use-card .ic { font-size: 22px; margin-bottom: 8px; }
.use-card .vl { font-size: 24px; font-weight: 700; color: #8b2525; }
.use-card .lb { font-size: 11px; color: #888; margin-top: 4px; }
.use-chart { margin-top: 10px; }
.use-chart canvas { max-height: 200px; }

/* BAĞIŞÇILAR */
.donor-section { padding: 5px 0; }
.donor-summary {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #6d1f1f 0%, #8b2525 100%);
    border-radius: 10px;
    color: white;
}
.donor-total, .donor-count { text-align: center; }
.donor-num { display: block; font-size: 32px; font-weight: 700; color: #fff; }
.donor-lbl { font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; }
.donor-list { display: flex; flex-direction: column; gap: 6px; }
.donor-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
}
.donor-item:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.donor-rank {
    width: 28px;
    height: 28px;
    background: #8b2525;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 12px;
}
.donor-item:nth-child(1) .donor-rank { background: #d4af37; }
.donor-item:nth-child(2) .donor-rank { background: #9e9e9e; }
.donor-item:nth-child(3) .donor-rank { background: #cd7f32; }
.donor-name { flex: 1; font-size: 13px; font-weight: 500; color: #333; }
.donor-count-badge {
    background: #e9ecef;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

/* MOBİL */
@media (max-width: 768px) {
    .kw-stat .n { font-size: 20px; }
    .stat-grid { grid-template-columns: 1fr; }
    .use-cards { grid-template-columns: repeat(2, 1fr); }
    .topic-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .kw-tab { padding: 12px 10px; font-size: 12px; }
}
