/*
 Theme Name: Kadence Child
 Template:   kadence
 Version:    1.0.0
*/

/* ─── Screen reader helper ─── */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ─── Wrapper ─── */
.live-search-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ─── Input ─── */
.live-search-input-wrapper {
    position: relative;
    margin-bottom: 32px;
}

#live-search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    font-size: 16px;
    border: 2px solid #4A5568;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1A202C;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#live-search-input:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.live-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4A5568;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* ─── Grid – reset Kadence list styles ─── */
.search-results-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.search-results-grid li::before,
.search-results-grid li::marker {
    display: none !important;
    content: none !important;
}

@media (max-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .search-results-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Kafelek ─── */
.search-result-card {
    display: flex;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.search-result-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none !important;
    color: inherit;
    border: 2px solid #1A202C;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    min-height: 220px;
}

.search-result-card__link:hover {
    border-color: #FF6B00 !important;
    box-shadow: 0 8px 24px rgba(255,107,0,0.18);
    transform: translateY(-3px);
}

/* ─── Miniatura ─── */
.search-result-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F7F7F7;
}

.search-result-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.search-result-card__link:hover .search-result-card__thumb img {
    transform: scale(1.04);
}

/* ─── Body ─── */
.search-result-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    gap: 8px;
}

/* ─── Kategoria ─── */
.search-result-card__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FF6B00;
}

/* ─── Tytuł ─── */
.search-result-card__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1A202C !important;
    margin: 0 !important;
    line-height: 1.4;
}

/* ─── Excerpt ─── */
.search-result-card__excerpt {
    font-size: 14px;
    color: #4A5568;
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

/* ─── Footer / Data ─── */
.search-result-card__footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F7F7F7;
}

.search-result-card__date {
    font-size: 12px;
    color: #718096;
}

/* ─── Brak wyników ─── */
.search-no-results {
    text-align: center;
    color: #718096;
    font-size: 16px;
    padding: 48px 0;
}

/* ─── Loading ─── */
#live-search-results.loading {
    opacity: 0.5;
    pointer-events: none;
}