/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-page {
    background: #f7f7f7;
}

.search-page__main {
    padding: 33px 0 74px;
    overflow-x: clip;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.search-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: #555;
}

.search-breadcrumb__link {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.search-breadcrumb__link:hover {
    color: #151515;
}

.search-breadcrumb__sep,
.search-breadcrumb__current {
    color: #555;
}

/* ============================================================
   HERO / FORM
   ============================================================ */

.search-hero {
    margin-bottom: 36px;
}

.search-hero__title {
    margin: 0 0 24px;
    color: #151515;
    font-family: var(--second-family);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 375;
    line-height: 1.05;
    text-transform: uppercase;
}

.search-form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    max-width: 720px;
}

.search-form__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: #151515;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s;
}

.search-form__input::placeholder {
    color: #999;
}

.search-form__input:focus {
    border-color: #151515;
}

.search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #151515;
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form__submit:hover {
    background: #333;
}

.search-form__submit img {
    display: block;
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ============================================================
   STATES
   ============================================================ */

.search-state {
    margin: 0 0 28px;
    color: #555;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}

.search-state strong {
    color: #151515;
    font-weight: 500;
}

.search-state--empty,
.search-state--idle {
    padding: 28px 0 12px;
}

/* ============================================================
   RESULTS GRID
   ============================================================ */

.search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ============================================================
   CARD
   ============================================================ */

.search-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.search-card:not(.is-disabled):hover {
    border-color: #151515;
}

.search-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 400 / 210;
    overflow: hidden;
    background: #ececec;
}

.search-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.search-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.search-card__type,
.search-card__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.search-card__type {
    background: #f0f0f0;
    color: #555;
}

.search-card__category {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

.search-card__date {
    display: block;
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 2px;
}

.search-card__title {
    margin: 0 0 12px;
    color: #151515;
    font-family: var(--second-family);
    font-size: 25px;
    font-weight: 375;
    line-height: 1.15;
}

.search-card__title a,
.search-card__title span {
    color: inherit;
    text-decoration: none;
}

.search-card__title a:hover {
    color: #151515;
}

.search-card__excerpt {
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.search-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #555;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    transition: color 0.2s;
}

.search-card__link:hover {
    color: #151515;
}

.search-card__link img {
    display: block;
    width: 16px;
    height: 16px;
}

.search-card__link--muted {
    color: #999;
    pointer-events: none;
}

/* Status accents */
.search-card--status-published .search-card__status {
    background: rgba(46, 160, 67, 0.12);
    color: #1f7a32;
}

.search-card--status-scheduled .search-card__status {
    background: rgba(254, 203, 19, 0.28);
    color: #8a6a00;
}

.search-card--status-expired .search-card__status {
    background: rgba(180, 120, 40, 0.14);
    color: #8a5a16;
}

.search-card--status-disabled .search-card__status,
.search-card--status-draft .search-card__status {
    background: rgba(0, 0, 0, 0.08);
    color: #666;
}

.search-card.is-disabled {
    opacity: 0.72;
    background: #f3f3f3;
}

.search-card.is-disabled .search-card__image {
    filter: grayscale(0.55);
}

.search-card.is-disabled .search-card__title {
    color: #666;
}

.search-card--type-page .search-card__status,
.search-card--type-contacts .search-card__status {
    background: rgba(21, 21, 21, 0.08);
    color: #333;
}
