/* ============================================================
   Han Blog Carousel Widget — CSS v1.0
   hantema.com | Han Geliştirici
   ============================================================ */

/* ── Wrapper ── */
.han-bc-wrapper {
    box-sizing: border-box;
}
.han-bc-wrapper *,
.han-bc-wrapper *::before,
.han-bc-wrapper *::after {
    box-sizing: border-box;
}

/* ── Header ── */
.han-bc-header {
    margin-bottom: 48px;
}
.han-bc-section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #0D2137;
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1.2;
}
.han-bc-section-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}
.han-bc-header[style*="center"] .han-bc-section-subtitle,
.han-bc-header .han-bc-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ── Carousel Outer ── */
.han-bc-carousel-outer {
    position: relative;
    overflow: hidden; /* sides ok'ları için override edilir */
}
.han-bc-carousel-outer.han-arrows-sides {
    overflow: visible;
}

/* ── Track ── */
.han-bc-track-wrap {
    overflow: hidden;
}
.han-bc-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.han-bc-slide {
    flex: 0 0 auto;
    padding: 8px 0;
}

/* ── Kart ── */
.han-bc-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.han-bc-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ── Görsel ── */
.han-bc-card-image-wrap {
    flex: 0 0 42%;
    display: block;
    overflow: hidden;
    text-decoration: none;
}
.han-bc-card-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    transition: transform 0.45s ease;
}
.han-bc-card-image.han-bc-zoom:hover,
.han-bc-card:hover .han-bc-card-image.han-bc-zoom {
    transform: scale(1.05);
}

/* ── Kart Body ── */
.han-bc-card-body {
    flex: 1;
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Kategori ── */
.han-bc-cat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
}
.han-bc-cat svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* ── Post Title ── */
.han-bc-card-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: #0D2137;
    line-height: 1.3;
    margin: 0 0 14px 0;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
a .han-bc-card-title,
a:hover .han-bc-card-title {
    text-decoration: none;
}
.han-bc-card-title:hover {
    color: #1a6aff;
}

/* ── Tarih ── */
.han-bc-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}
.han-bc-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* ── Divider ── */
.han-bc-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 18px;
}

/* ── Özet ── */
.han-bc-excerpt {
    font-size: 15px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 16px 0;
    flex: 1;
}

/* ── Devamını Oku ── */
.han-bc-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1a6aff;
    text-decoration: none;
    margin-top: auto;
}
.han-bc-readmore:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════
   OKLAR
   ══════════════════════════════════ */
.han-bc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.han-bc-btn:hover {
    background: #0D2137;
    border-color: #0D2137;
}
.han-bc-btn svg {
    width: 18px;
    height: 18px;
    stroke: #0D2137;
    transition: stroke 0.2s;
    flex-shrink: 0;
    display: block;
}
.han-bc-btn:hover svg {
    stroke: #fff;
}

.han-bc-prev { left: -22px; }
.han-bc-next { right: -22px; }

/* Square stili */
.han-arrow-square .han-bc-btn {
    border-radius: 8px;
}

/* Minimal stili */
.han-arrow-minimal .han-bc-btn {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.han-arrow-minimal .han-bc-btn:hover {
    background: rgba(0,0,0,0.06);
    border-color: transparent;
}
.han-arrow-minimal .han-bc-btn svg { stroke: #0D2137; }
.han-arrow-minimal .han-bc-btn:hover svg { stroke: #0D2137; }

/* Alt konum */
.han-bc-carousel-outer.han-arrows-bottom .han-bc-btn {
    position: static;
    transform: none;
}
.han-bc-carousel-outer.han-arrows-bottom .han-bc-nav-bottom {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* Gizli ok (başta/sonda döngü kapalıysa) */
.han-bc-btn.han-bc-hidden {
    opacity: 0.3;
    pointer-events: none;
}

/* ══════════════════════════════════
   DOTS
   ══════════════════════════════════ */
.han-bc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.han-bc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s, width 0.2s;
}
.han-bc-dot.active {
    background: #0D2137;
    width: 22px;
    border-radius: 4px;
}

/* ══════════════════════════════════
   FOOTER / "TÜMÜNÜ GÖR"
   ══════════════════════════════════ */
.han-bc-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.han-bc-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #0D2137;
    border: 2px solid #0D2137;
    border-radius: 50px;
    padding: 14px 32px;
    background: transparent;
    transition: background 0.25s, color 0.25s, transform 0.15s;
}
.han-bc-viewall:hover {
    background: #0D2137;
    color: #fff;
    transform: translateY(-1px);
}

/* ══════════════════════════════════
   MOBİL
   ══════════════════════════════════ */
@media (max-width: 1024px) {
    .han-bc-card-image { height: 280px; }
}

@media (max-width: 768px) {
    .han-bc-card {
        flex-direction: column;
    }
    .han-bc-card-image-wrap {
        flex: 0 0 auto;
        width: 100%;
    }
    .han-bc-card-image {
        height: 220px;
        border-radius: 12px 12px 0 0;
    }
    .han-bc-card-body {
        padding: 20px;
    }
    .han-bc-section-title { font-size: 26px; }
    .han-bc-prev { left: -16px; }
    .han-bc-next { right: -16px; }
    .han-bc-btn  { width: 36px; height: 36px; }
    .han-bc-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 480px) {
    .han-bc-header { margin-bottom: 28px; }
    .han-bc-card-image { height: 180px; }
    .han-bc-prev { left: 0; }
    .han-bc-next { right: 0; }
}
