/* KurdChat Kürt Haberleri Widget */

.kckh-news-box {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    box-sizing: border-box;
}

.kckh-news-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
}

.kckh-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #facc15;
    color: #166534;
    font-size: 14px;
    flex: 0 0 auto;
}

.kckh-news-list {
    display: flex;
    flex-direction: column;
}

.kckh-news-item {
    display: block;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eef0f2;
    transition: background-color .18s ease, transform .18s ease;
}

.kckh-news-item:last-child {
    border-bottom: 0;
}

.kckh-news-item:hover,
.kckh-news-item:focus {
    background: #f8fafc;
    color: #991b1b;
    text-decoration: none;
}

.kckh-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}

.kckh-news-source {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.kckh-news-title {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
}

.kckh-news-item:hover .kckh-news-title,
.kckh-news-item:focus .kckh-news-title {
    color: #991b1b;
}

.kckh-news-error {
    padding: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.5;
}

/* v1.2.0 - AJAX arama */
.kckh-search-form {
    margin: 0;
    padding: 10px 12px 5px;
    background: #fff;
}

.kckh-search-inner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 7px;
}

.kckh-search-icon {
    position: absolute;
    z-index: 1;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #991b1b;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.kckh-search-input {
    min-width: 0;
    flex: 1 1 auto;
    height: 38px;
    margin: 0 !important;
    padding: 7px 10px 7px 32px !important;
    border: 1px solid rgba(153, 27, 27, .25) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #1f2937 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.kckh-search-input:focus {
    border-color: #b91c1c !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, .10) !important;
}

.kckh-search-button {
    flex: 0 0 auto;
    min-width: 58px;
    height: 38px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #991b1b !important;
    border-radius: 8px !important;
    background: #b91c1c !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.kckh-search-button:hover,
.kckh-search-button:focus {
    background: #991b1b !important;
    color: #fff !important;
}

/* AJAX arşiv sayfalama */
.kckh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 10px 12px;
    border-top: 1px solid #eef0f2;
    background: #fff;
}

.kckh-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border: 1px solid rgba(153, 27, 27, .26);
    border-radius: 7px;
    background: #fff;
    color: #991b1b !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.kckh-page-link:hover,
.kckh-page-link:focus,
.kckh-page-link.is-current {
    border-color: #b91c1c;
    background: #b91c1c;
    color: #fff !important;
}

.kckh-page-link.is-current {
    cursor: default;
}

.kckh-page-prev,
.kckh-page-next {
    font-size: 20px;
    padding-bottom: 2px;
}

.kckh-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 18px;
    color: #6b7280;
    font-weight: 800;
}

.kckh-ajax-region {
    position: relative;
    transition: opacity .15s ease;
}

.kckh-news-box.is-loading .kckh-ajax-region {
    opacity: .45;
    pointer-events: none;
}

.kckh-news-box.is-loading .kckh-search-button {
    opacity: .65;
    cursor: wait;
}

.kckh-ajax-status {
    height: 0;
    overflow: hidden;
    font-size: 0;
}

.kckh-no-results {
    text-align: center;
}

.kckh-search-form .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    .kckh-news-item {
        padding: 11px 12px;
    }

    .kckh-news-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .kckh-pagination {
        gap: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .kckh-page-link {
        min-width: 29px;
        height: 29px;
        padding: 0 6px;
    }
}

@media (max-width: 420px) {
    .kckh-search-form {
        padding-left: 10px;
        padding-right: 10px;
    }

    .kckh-search-inner {
        gap: 5px;
    }

    .kckh-search-button {
        min-width: 52px;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
}


/* v1.3.0 - Türkiye Geneli Güncel Haberler ile aynı arama/tarih düzeni */
.kckh-search-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.kckh-search-row,
.kckh-date-row {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.kckh-search-row {
    min-height: 40px;
}

.kckh-search-row .kckh-search-icon {
    top: 50% !important;
    left: 10px !important;
    transform: translateY(-50%) !important;
}

.kckh-search-row .kckh-search-input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    padding: 7px 10px 7px 32px !important;
    border-radius: 8px 0 0 8px !important;
}

.kckh-search-row .kckh-search-button {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    min-height: 40px !important;
    height: 40px !important;
    align-self: stretch !important;
    border-radius: 0 !important;
}

.kckh-date-filter-bottom {
    width: auto;
    margin: 12px 12px 10px;
}

.kckh-date-filter-bottom .kckh-date-row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(153, 27, 27, .18);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(153, 27, 27, .018);
}

.kckh-date-filter-bottom .kckh-date-input {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #1f2937 !important;
}

.kckh-date-filter-bottom .kckh-date-from {
    border-right: 1px solid rgba(153, 27, 27, .14) !important;
}

.kckh-date-separator {
    display: none !important;
}

.kckh-reset-date-filter {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid rgba(153, 27, 27, .14);
    border-radius: 0;
    background: rgba(153, 27, 27, .055);
    color: #991b1b;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.kckh-reset-date-filter:hover,
.kckh-reset-date-filter:focus {
    background: #b91c1c;
    color: #fff;
    outline: none;
}

.kckh-reset-date-filter span {
    display: block;
    transform: translateY(-1px);
}

.kckh-search-row .kckh-refresh-button {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #991b1b !important;
    border-left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    background: rgba(153, 27, 27, .055) !important;
    color: #991b1b !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.kckh-search-row .kckh-refresh-button:hover,
.kckh-search-row .kckh-refresh-button:focus {
    background: #991b1b !important;
    color: #fff !important;
    outline: none !important;
}

.kckh-search-row .kckh-refresh-button:disabled {
    cursor: default !important;
    opacity: .65 !important;
}

.kckh-search-row .kckh-refresh-button.is-refreshing span {
    animation: kckh-refresh-spin .7s linear infinite;
}

@keyframes kckh-refresh-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
    .kckh-search-row .kckh-search-button {
        flex-basis: 58px !important;
        width: 58px !important;
        min-width: 58px !important;
    }

    .kckh-search-row .kckh-refresh-button,
    .kckh-reset-date-filter {
        flex-basis: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
    }

    .kckh-date-filter-bottom {
        margin: 10px 10px 8px;
    }

    .kckh-date-filter-bottom .kckh-date-input {
        flex: 1 1 50% !important;
        width: 50% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}


/* 1.3.1 - Tarih sıfırlama düğmesini kesin olarak en sağa sabitle */
.kckh-date-filter-bottom .kckh-date-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
}

.kckh-date-filter-bottom .kckh-date-from {
    order: 1 !important;
    float: none !important;
}

.kckh-date-filter-bottom .kckh-date-to {
    order: 2 !important;
    float: none !important;
}

.kckh-date-filter-bottom .kckh-reset-date-filter {
    order: 3 !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    position: static !important;
    align-self: stretch !important;
    border-radius: 0 8px 8px 0 !important;
}

@media (max-width: 680px) {
    .kckh-date-filter-bottom .kckh-reset-date-filter {
        flex-basis: 34px !important;
        width: 34px !important;
        min-width: 34px !important;
    }
}
