/* Recipe search form — matches reference.html bento filter design */

.recipe-discovery {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 16px 0 24px;
    text-align: left;
}

.recipe-discovery-constrained {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .recipe-discovery-constrained {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        --recipe-action-card-pad-y: 12px;
        --recipe-action-card-pad-x: 14px;
        --recipe-action-card-gap: 10px;
        --recipe-action-card-inner: 46px;
        --recipe-action-card-stack-height: calc(
            3 * (2 * var(--recipe-action-card-pad-y) + var(--recipe-action-card-inner))
            + 2 * var(--recipe-action-card-gap)
        );
    }
}

.recipe-discovery__page-intro {
    text-align: center;
}

.recipe-discovery__page-header {
    margin: 0;
    color: #e5e2e1;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.recipe-discovery__page-subheader {
    margin: 8px auto 0;
    max-width: 36rem;
    color: #c2c9b4;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.recipe-discovery__return {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #e5e2e1;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.recipe-discovery__return:hover {
    color: #a5df63;
    text-decoration: none;
}

/* Action cards */
.recipe-action-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .recipe-action-cards {
        width: 268px;
        gap: var(--recipe-action-card-gap);
        height: var(--recipe-action-card-stack-height);
    }
}

.recipe-action-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-height: 0;
    padding: 16px;
    border: none;
    border-radius: 0;
    background: #a5df63;
    color: #2d4e00;
    text-align: left;
    text-decoration: none;
}

@media (min-width: 768px) {
    .recipe-action-card {
        padding: var(--recipe-action-card-pad-y) var(--recipe-action-card-pad-x);
    }
}

.recipe-action-card:hover,
.recipe-action-card:focus {
    color: #2d4e00;
    text-decoration: none;
}

.recipe-action-card:active {
    color: #2d4e00;
}

.recipe-action-card__body {
    z-index: 1;
}

.recipe-action-card__title {
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .recipe-action-card__title {
        white-space: nowrap;
    }
}

.recipe-action-card__subtitle {
    margin: 0;
    font-family: Geist, Manrope, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    opacity: 0.8;
}

/* Glass search panel */
.recipe-search-panel {
    flex: 1;
    min-width: 0;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(66, 73, 57, 0.5);
    border-radius: 0;
    padding: 20px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .recipe-search-panel {
        display: flex;
        flex-direction: column;
        height: var(--recipe-action-card-stack-height);
        padding: 14px;
    }
}

.recipe-search-panel__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .recipe-search-panel__heading {
        margin-bottom: 10px;
    }

    .recipe-search-panel__heading h2 {
        font-size: 18px;
        line-height: 22px;
    }
}

.recipe-search-panel__heading .material-symbols-outlined {
    color: #a5df63;
    font-size: 20px;
}

.recipe-search-panel__heading h2 {
    margin: 0;
    color: #e5e2e1;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
}

.recipe-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .recipe-search-form {
        flex: 1;
        min-height: 0;
        gap: 10px;
    }
}

.recipe-search-form__text-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .recipe-search-form__text-row,
    .recipe-search-form__filter-row {
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .recipe-search-form__text-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.recipe-search-form__filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 576px) {
    .recipe-search-form__filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .recipe-search-form__filter-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.recipe-search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recipe-search-field label {
    margin: 0 0 0 4px;
    color: #c2c9b4;
    font-family: Geist, Manrope, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

@media (min-width: 768px) {
    .recipe-search-field {
        gap: 2px;
    }

    .recipe-search-field label {
        font-size: 11px;
        line-height: 14px;
    }
}

.recipe-search-input,
.recipe-search-select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #424939;
    border-radius: 0;
    background: #1c1b1b;
    color: #e5e2e1;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    line-height: 20px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 768px) {
    .recipe-search-input,
    .recipe-search-select {
        padding: 6px 10px;
        font-size: 14px;
        line-height: 18px;
    }
}

.recipe-search-input::placeholder {
    color: #424939;
}

.recipe-search-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23424939' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.recipe-search-input:focus,
.recipe-search-select:focus {
    border-color: #a5df63;
    box-shadow: 0 0 0 2px rgba(165, 223, 99, 0.2);
    outline: none;
}

.recipe-search-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 0;
}

@media (min-width: 768px) {
    .recipe-search-form__actions {
        margin-top: auto;
        gap: 8px;
    }

    .recipe-search-btn {
        padding: 6px 18px;
        font-size: 13px;
        line-height: 18px;
    }
}

.recipe-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 24px;
    border-radius: 0;
    font-family: Geist, Manrope, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease, background 0.15s ease;
}

.recipe-search-btn:active {
    transform: scale(0.95);
}

.recipe-search-btn--clear {
    border: 1px solid #424939;
    background: transparent;
    color: #e5e2e1;
}

.recipe-search-btn--clear:hover {
    background: rgba(53, 53, 52, 0.3);
    color: #e5e2e1;
}

.recipe-search-btn--submit {
    border: none;
    background: #a5df63;
    color: #2d4e00;
    font-weight: 700;
}

.recipe-search-btn--submit:hover {
    filter: brightness(1.1);
    color: #2d4e00;
}

.recipe-search-btn--submit .material-symbols-outlined {
    font-size: 18px;
}

.recipe-search-diet-blurb {
    margin: -8px 0 0;
    padding: 0;
    text-align: center;
    color: #c2c9b4;
    font-family: Manrope, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.recipe-discovery__grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #424939;
}

.recipe-discovery__grid-header h2 {
    margin: 0;
    color: #e5e2e1;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
