/* Home page filters and "What can I make?" (js/recipe-finder.js) */

.recipe-finder {
    margin: 30px 0 0;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* "Search recipes" box */
.rf-find {
    position: relative;
    margin-bottom: 16px;
}

.rf-find .fa-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #b0b0b0;
    pointer-events: none;
}

#rf-query {
    width: 100%;
    padding: 13px 16px 13px 46px;
    font-size: 17px;
    color: #2b2b2b;
    background: #fff;
    border: 2px solid #e5e0da;
    border-radius: 28px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#rf-query:focus {
    border-color: #e8772e;
    box-shadow: 0 0 0 3px rgba(232, 119, 46, 0.15);
}

.rf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rf-filter {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #404040;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
}

.rf-filter:hover {
    border-color: #e8772e;
}

.rf-filter.active {
    color: #fff;
    background: #e8772e;
    border-color: #e8772e;
}

/* Time filter and sort */
.rf-time-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-top: 12px;
}

.rf-times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rf-row-label {
    margin-right: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #606060;
}

.rf-time {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #404040;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 20px;
    cursor: pointer;
}

.rf-time:hover {
    border-color: #e8772e;
}

.rf-time.active {
    color: #c95f1a;
    background: #fdf0e6;
    border: 1px solid #e8772e;
}

.rf-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #606060;
}

.rf-sort select {
    padding: 5px 8px;
    font-size: 14px;
    font-weight: 400;
    color: #404040;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.rf-search {
    margin-top: 22px;
}

.rf-search label {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #404040;
}

.rf-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: text;
}

.rf-box:focus-within {
    border-color: #e8772e;
    box-shadow: 0 0 0 2px rgba(232, 119, 46, 0.2);
}

.rf-chips {
    display: contents;
}

.rf-chip {
    padding: 3px 8px 3px 10px;
    font-size: 14px;
    color: #c95f1a;
    background: #fdf0e6;
    border: 1px solid #f4c8a3;
    border-radius: 14px;
    cursor: pointer;
}

.rf-chip span {
    margin-left: 2px;
    font-weight: 700;
}

#rf-input {
    flex: 1;
    min-width: 180px;
    padding: 6px 4px;
    font-size: 16px;
    border: 0;
    outline: none;
    background: transparent;
}

.rf-help {
    margin: 6px 0 0;
    font-size: 13px;
    color: #808080;
}

.rf-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.rf-item {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fffaf4;
    border: 1px solid #f0e2d2;
    border-radius: 6px;
}

.rf-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #404040;
}

.rf-title:hover,
.rf-title:focus {
    color: #e8772e;
    text-decoration: none;
}

.rf-score {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #606060;
}

.rf-bar {
    display: block;
    height: 6px;
    margin: 6px 0;
    background: #f0e2d2;
    border-radius: 3px;
    overflow: hidden;
}

.rf-bar span {
    display: block;
    height: 100%;
    background: #e8772e;
}

.rf-missing {
    display: block;
    font-size: 13px;
    color: #808080;
}

.rf-missing.rf-all {
    color: #2f8f46;
    font-weight: 600;
}

.rf-empty,
.rf-none {
    margin-top: 14px;
    color: #808080;
}
