/* ============================================
   StrangerCam All Searches Widget
   ============================================ */

/* ── Container override — match site directory width (1280px) ── */
.scw-all-searches .scw-container {
    max-width: 1280px;
    padding: 0 32px;
}

/* ── Hero ── */
.scw-all-searches__hero {
    background: var(--scw-gray-50);
    border-bottom: 1px solid var(--scw-gray-200);
    padding: 72px 0 64px;
    text-align: center;
}

.scw-all-searches__count {
    display: inline-block;
    background: var(--scw-yellow);
    color: var(--scw-black);
    font-family: var(--scw-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.scw-all-searches__title {
    font-family: var(--scw-font);
    font-size: 44px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--scw-black);
    margin: 0 0 16px;
}

.scw-all-searches__desc {
    font-family: var(--scw-font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--scw-gray-700);
    max-width: 560px;
    margin: 0 auto 28px;
}

.scw-all-searches__hero .scw-btn--primary {
    margin-top: 4px;
}

/* ── Filter Bar ── */
.scw-all-searches__filters {
    padding: 24px 0;
    border-bottom: 1px solid var(--scw-gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--scw-white);
}

.scw-all-searches__filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scw-all-searches__filter-bar::-webkit-scrollbar {
    display: none;
}

.scw-all-searches__filter-btn {
    flex-shrink: 0;
    font-family: var(--scw-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--scw-gray-700);
    background: var(--scw-white);
    border: 1px solid var(--scw-gray-200);
    border-radius: 100px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all var(--scw-duration) var(--scw-ease);
    white-space: nowrap;
}

.scw-all-searches__filter-btn:hover {
    color: var(--scw-black);
    border-color: var(--scw-gray-300);
    background: var(--scw-gray-50);
}

.scw-all-searches__filter-btn.is-active {
    color: var(--scw-black);
    background: var(--scw-yellow);
    border-color: var(--scw-yellow);
}

/* ── Grid Section ── */
.scw-all-searches__grid-section {
    padding: 48px 0 80px;
}

.scw-all-searches__grid {
    display: grid;
    grid-template-columns: repeat(var(--scw-as-cols, 3), 1fr);
    gap: 20px;
}

/* ── Search Card ── */
.scw-search-card {
    display: flex;
    flex-direction: column;
    background: var(--scw-white);
    border: 1px solid var(--scw-gray-200);
    border-radius: var(--scw-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s var(--scw-ease);
}

.scw-search-card:hover {
    border-color: var(--scw-yellow);
    box-shadow: var(--scw-shadow-md);
    transform: translateY(-3px);
}

.scw-search-card.is-hidden {
    display: none;
}

/* Card image (optional) */
.scw-search-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--scw-gray-100);
    overflow: hidden;
}

.scw-search-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--scw-ease);
}

.scw-search-card:hover .scw-search-card__image img {
    transform: scale(1.04);
}

/* Card body */
.scw-search-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    flex: 1;
}

.scw-search-card__tag {
    display: inline-block;
    font-family: var(--scw-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--scw-yellow-hover);
    margin-bottom: 8px;
}

.scw-search-card__name {
    font-family: var(--scw-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--scw-black);
    margin: 0 0 8px;
    line-height: 1.3;
}

.scw-search-card__desc {
    font-family: var(--scw-font);
    font-size: 13px;
    line-height: 1.6;
    color: var(--scw-gray-700);
    margin: 0 0 16px;
    flex: 1;
}

/* Explore link */
.scw-search-card__link {
    font-family: var(--scw-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--scw-yellow-hover);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: gap var(--scw-duration) var(--scw-ease);
}

.scw-search-card:hover .scw-search-card__link {
    gap: 8px;
}

/* No results */
.scw-all-searches__no-results {
    font-family: var(--scw-font);
    font-size: 15px;
    color: var(--scw-gray-500);
    text-align: center;
    padding: 60px 0;
    margin: 0;
}

/* ── Scroll animation ── */
.scw-search-card {
    opacity: 0;
    transform: translateY(20px);
}

.scw-search-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s var(--scw-ease-out), transform 0.5s var(--scw-ease-out);
}

/* Skip animation inside Elementor editor */
.elementor-editor-active .scw-search-card {
    opacity: 1;
    transform: none;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .scw-all-searches__hero {
        padding: 56px 0 48px;
    }

    .scw-all-searches__title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .scw-all-searches .scw-container {
        padding: 0 24px;
    }

    .scw-all-searches__hero {
        padding: 44px 0 36px;
    }

    .scw-all-searches__title {
        font-size: 30px;
    }

    .scw-all-searches__desc {
        font-size: 15px;
    }

    .scw-all-searches__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .scw-all-searches__grid-section {
        padding: 36px 0 60px;
    }

    .scw-all-searches__filters {
        padding: 16px 0;
    }

    .scw-all-searches__filter-btn {
        font-size: 12px;
        padding: 7px 16px;
    }
}

@media (max-width: 480px) {
    .scw-all-searches .scw-container {
        padding: 0 20px;
    }

    .scw-all-searches__hero {
        padding: 36px 0 28px;
    }

    .scw-all-searches__title {
        font-size: 26px;
    }

    .scw-all-searches__desc {
        font-size: 14px;
    }

    .scw-all-searches__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .scw-all-searches__grid-section {
        padding: 28px 0 48px;
    }

    .scw-search-card__name {
        font-size: 16px;
    }

    .scw-search-card__body {
        padding: 16px 18px 18px;
    }
}
