/* =========================================================
RECIPE WORLD — SEARCH PAGE
ORANGE MAGAZINE STYLE
========================================================= */

/* =========================================================
VARIABLES
========================================================= */

:root {
--orange: #e87524;
--orange-dark: #c95d12;
--orange-light: #fff3e8;

 
--black: #202020;
--dark: #292929;

--gray: #777777;
--light-gray: #eeeeee;
--lighter-gray: #f7f7f7;

--white: #ffffff;

--container: 1240px;
 

}

/* =========================================================
PAGE
========================================================= */

.search-page {
min-height: 100vh;
padding: 55px 0 90px;
background: #ffffff;
}

/* =========================================================
CONTAINER
========================================================= */

.search-page .container {
width: min(1240px, calc(100% - 40px));
margin: 0 auto;
}

/* =========================================================
SEARCH HERO
========================================================= */

.search-hero {
max-width: 900px;
margin: 0 auto;
padding: 20px 0 55px;
text-align: center;
animation: fadeUp 0.7s ease both;
}

/* =========================================================
EYEBROW
========================================================= */

.eyebrow {
display: inline-block;

 
color: var(--orange);

font-size: 11px;
font-weight: 800;

letter-spacing: 0.14em;
text-transform: uppercase;

animation: fadeUp 0.6s ease 0.1s both;
 

}

/* =========================================================
HERO HEADING
========================================================= */

.search-hero h1 {
max-width: 850px;

 
margin: 13px auto 0;

color: var(--black);

font-family:
    Georgia,
    "Times New Roman",
    serif;

font-size: clamp(42px, 5vw, 65px);

font-weight: 500;

line-height: 1.06;

letter-spacing: -0.035em;

animation: fadeUp 0.75s ease 0.18s both;
 

}

.search-hero h1 span {
display: inline-block;

 
color: var(--orange);

transition:
    color 0.3s ease,
    transform 0.3s ease;
 

}

.search-hero h1 span:hover {
color: var(--orange-dark);

 
transform: translateY(-2px);
 

}

/* =========================================================
HERO DESCRIPTION
========================================================= */

.search-hero > p {
max-width: 600px;

 
margin: 16px auto 0;

color: var(--gray);

font-size: 15px;

line-height: 1.7;

animation: fadeUp 0.7s ease 0.3s both;
 

}

/* =========================================================
SEARCH FORM
========================================================= */

.search-form {
display: flex;
align-items: center;

 
width: 100%;
max-width: 720px;

height: 58px;

margin: 30px auto 0;

border: 1px solid #dcdcdc;

background: var(--white);

box-shadow:
    0 5px 20px rgba(0, 0, 0, 0.035);

transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;

animation: fadeUp 0.7s ease 0.4s both;
 

}

.search-form:focus-within {
border-color: var(--orange);

 
box-shadow:
    0 10px 30px rgba(232, 117, 36, 0.13);

transform: translateY(-3px);
 

}

/* =========================================================
SEARCH INPUT
========================================================= */

.search-form input {
flex: 1;

 
min-width: 0;

width: 100%;
height: 100%;

padding: 0 20px;

border: 0;
outline: 0;

background: transparent;

color: var(--black);

font-size: 15px;
 

}

.search-form input::placeholder {
color: #999999;
}

.search-form input:focus {
outline: none;
}

/* =========================================================
SEARCH BUTTON
========================================================= */

.search-form button {
flex-shrink: 0;

 
height: 100%;

padding: 0 28px;

border: 0;

background: var(--orange);

color: var(--white);

cursor: pointer;

font-size: 12px;
font-weight: 800;

letter-spacing: 0.05em;

transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
 

}

.search-form button:hover {
background: var(--orange-dark);

 
transform: translateX(-2px);

box-shadow:
    0 5px 15px rgba(201, 93, 18, 0.20);
 

}

.search-form button:active {
transform: translateX(0);
}

/* =========================================================
DID YOU MEAN
========================================================= */

.did-you-mean {
margin-top: 18px;

 
color: #888888;

font-size: 13px;

animation: fadeUp 0.6s ease 0.5s both;
 

}

.did-you-mean a {
margin: 0 4px;

 
color: var(--orange);

font-weight: 700;

text-decoration: none;

transition: color 0.2s ease;
 

}

.did-you-mean a:hover {
color: var(--orange-dark);

 
text-decoration: underline;
 

}

/* =========================================================
RESULTS HEADER
========================================================= */

.results-header {
display: flex;
align-items: flex-end;
justify-content: space-between;

 
gap: 20px;

margin-bottom: 25px;
padding-bottom: 18px;

border-bottom: 1px solid var(--light-gray);

animation: fadeUp 0.7s ease both;
 

}

.results-header h2 {
margin: 0;

 
color: var(--black);

font-family:
    Georgia,
    "Times New Roman",
    serif;

font-size: clamp(28px, 3vw, 39px);

font-weight: 500;

line-height: 1.1;
 

}

.results-header p {
margin: 6px 0 0;

 
color: #888888;

font-size: 13px;
 

}

/* =========================================================
RESULTS COUNT
========================================================= */

.results-count {
flex-shrink: 0;

 
padding: 7px 12px;

border-radius: 2px;

background: var(--orange-light);

color: var(--orange);

font-size: 11px;

font-weight: 800;

letter-spacing: 0.03em;
 

}

/* =========================================================
RECIPE GRID
========================================================= */

.recipe-grid {
display: grid;

 
grid-template-columns:
    repeat(4, minmax(0, 1fr));

gap: 25px 14px;
 

}

/* =========================================================
RECIPE CARD
========================================================= */

.recipe-card {
display: block;

 
min-width: 0;

overflow: hidden;

background: var(--white);

color: inherit;

text-decoration: none;

opacity: 0;

animation:
    recipeReveal 0.7s ease forwards;

transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
 

}

.recipe-card:nth-child(1) {
animation-delay: 0.05s;
}

.recipe-card:nth-child(2) {
animation-delay: 0.12s;
}

.recipe-card:nth-child(3) {
animation-delay: 0.19s;
}

.recipe-card:nth-child(4) {
animation-delay: 0.26s;
}

.recipe-card:nth-child(5) {
animation-delay: 0.33s;
}

.recipe-card:nth-child(6) {
animation-delay: 0.40s;
}

.recipe-card:nth-child(7) {
animation-delay: 0.47s;
}

.recipe-card:nth-child(8) {
animation-delay: 0.54s;
}

.recipe-card:nth-child(9) {
animation-delay: 0.61s;
}

.recipe-card:nth-child(10) {
animation-delay: 0.68s;
}

.recipe-card:nth-child(11) {
animation-delay: 0.75s;
}

.recipe-card:nth-child(12) {
animation-delay: 0.82s;
}

.recipe-card:hover {
transform: translateY(-7px);

 
box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08);
 

}

/* =========================================================
RECIPE IMAGE
========================================================= */

.recipe-image-wrapper {
position: relative;

 
width: 100%;
height: 285px;

overflow: hidden;

background: var(--light-gray);
 

}

.recipe-image-wrapper img {
display: block;

 
width: 100%;
height: 100%;

object-fit: cover;

transition:
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.4s ease;
 

}

.recipe-card:hover .recipe-image-wrapper img {
transform: scale(1.07);

 
filter: brightness(0.94);
 

}

/* =========================================================
IMAGE PLACEHOLDER
========================================================= */

.recipe-image-placeholder {
display: flex;
align-items: center;
justify-content: center;

 
width: 100%;
height: 100%;

background:
    linear-gradient(
        135deg,
        #fff0df,
        #fff8ed
    );

font-size: 70px;

transition: transform 0.4s ease;
 

}

.recipe-card:hover .recipe-image-placeholder {
transform: scale(1.04);
}

/* =========================================================
RECIPE CONTENT
========================================================= */

.recipe-content {
padding: 15px 4px 8px;
}

/* =========================================================
RECIPE TITLE
========================================================= */

.recipe-content h2 {
margin: 0;

 
color: var(--black);

font-family:
    Georgia,
    "Times New Roman",
    serif;

font-size: 20px;

font-weight: 600;

line-height: 1.2;

transition: color 0.25s ease;
 

}

.recipe-card:hover .recipe-content h2 {
color: var(--orange);
}

/* =========================================================
RECIPE META
========================================================= */

.recipe-meta {
display: flex;
flex-wrap: wrap;

 
gap: 7px 14px;

margin-top: 9px;
 

}

.recipe-meta span {
color: #888888;

 
font-size: 11px;

line-height: 1.4;

transition: color 0.25s ease;
 

}

.recipe-card:hover .recipe-meta span {
color: #666666;
}

/* =========================================================
VIEW RECIPE
========================================================= */

.recipe-card-link {
display: flex;
align-items: center;
justify-content: space-between;

 
margin-top: 14px;
padding-top: 12px;

border-top: 1px solid var(--light-gray);

color: var(--orange);

font-size: 11px;

font-weight: 800;

letter-spacing: 0.04em;

text-transform: uppercase;

transition: color 0.25s ease;
 

}

.recipe-card-link span:last-child {
font-size: 17px;

 
line-height: 1;

transition: transform 0.3s ease;
 

}

.recipe-card:hover .recipe-card-link {
color: var(--orange-dark);
}

.recipe-card:hover .recipe-card-link span:last-child {
transform: translateX(5px);
}

/* =========================================================
PAGINATION
========================================================= */

.pagination {
display: flex;
align-items: center;
justify-content: center;

 
gap: 10px;

margin-top: 55px;

animation: fadeUp 0.7s ease both;
 

}

/* =========================================================
PAGINATION BUTTON
========================================================= */

.pagination-button {
display: inline-flex;
align-items: center;
justify-content: center;

 
min-height: 40px;

padding: 0 16px;

border: 1px solid #dddddd;

background: var(--white);

color: #555555;

font-size: 11px;

font-weight: 700;

text-decoration: none;

transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
 

}

.pagination-button:hover {
border-color: var(--orange);

 
background: var(--orange);

color: var(--white);

transform: translateY(-2px);
 

}

.pagination-button.disabled {
opacity: 0.4;

 
cursor: default;

pointer-events: none;
 

}

/* =========================================================
PAGE NUMBERS
========================================================= */

.pagination-pages {
display: flex;
align-items: center;

 
gap: 5px;
 

}

.pagination-page {
display: inline-flex;
align-items: center;
justify-content: center;

 
width: 40px;
height: 40px;

border: 1px solid #dddddd;

background: var(--white);

color: #555555;

font-size: 11px;

font-weight: 700;

text-decoration: none;

transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
 

}

.pagination-page:hover {
border-color: var(--orange);

 
color: var(--orange);

transform: translateY(-2px);
 

}

.pagination-page.active {
border-color: var(--orange);

 
background: var(--orange);

color: var(--white);

box-shadow:
    0 5px 14px rgba(232, 117, 36, 0.20);
 

}

/* =========================================================
PAGINATION ELLIPSIS
========================================================= */

.pagination-ellipsis {
display: inline-flex;
align-items: center;
justify-content: center;

 
width: 30px;

color: #999999;

font-size: 12px;
 

}

/* =========================================================
NO RESULTS
========================================================= */

.no-results {
max-width: 720px;

 
margin: 30px auto 0;

padding: 65px 30px;

border: 1px solid var(--light-gray);

background: var(--lighter-gray);

text-align: center;

animation: fadeUp 0.7s ease both;
 

}

/* =========================================================
NO RESULTS ICON
========================================================= */

.no-results-icon {
display: flex;
align-items: center;
justify-content: center;

 
width: 85px;
height: 85px;

margin: 0 auto 20px;

border-radius: 50%;

background: var(--orange-light);

font-size: 38px;

animation:
    floatIcon 3s ease-in-out infinite;
 

}

/* =========================================================
NO RESULTS TITLE
========================================================= */

.no-results h2 {
margin: 0;

 
color: var(--black);

font-family:
    Georgia,
    "Times New Roman",
    serif;

font-size: 34px;

font-weight: 500;

line-height: 1.15;
 

}

/* =========================================================
NO RESULTS TEXT
========================================================= */

.no-results p {
max-width: 540px;

 
margin: 12px auto 25px;

color: #777777;

font-size: 14px;

line-height: 1.7;
 

}

.no-results strong {
color: var(--orange);
}

/* =========================================================
PRIMARY BUTTON
========================================================= */

.primary-button {
display: inline-flex;
align-items: center;
justify-content: center;

 
min-height: 43px;

padding: 0 20px;

background: var(--orange);

color: var(--white);

font-size: 11px;

font-weight: 800;

letter-spacing: 0.04em;

text-decoration: none;

text-transform: uppercase;

transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
 

}

.primary-button:hover {
background: var(--orange-dark);

 
color: var(--white);

transform: translateY(-3px);

box-shadow:
    0 8px 20px rgba(201, 93, 18, 0.20);
 

}

/* =========================================================
ANIMATIONS
========================================================= */

@keyframes fadeUp {
from {
opacity: 0;

 
    transform:
        translateY(24px);
}

to {
    opacity: 1;

    transform:
        translateY(0);
}
 

}

@keyframes recipeReveal {
from {
opacity: 0;

 
    transform:
        translateY(28px);
}

to {
    opacity: 1;

    transform:
        translateY(0);
}
 

}

@keyframes floatIcon {
0%,
100% {
transform:
translateY(0);
}

 
50% {
    transform:
        translateY(-7px);
}
 

}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 1000px) {

 
.search-page {
    padding: 45px 0 70px;
}

.search-page .container {
    width: min(94%, 900px);
}

.search-hero h1 {
    font-size: 52px;
}

.recipe-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px 14px;
}

.recipe-image-wrapper {
    height: 300px;
}
 

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 700px) {

 
.search-page {
    padding: 32px 0 55px;
}

.search-page .container {
    width: calc(100% - 28px);
}


/* HERO */

.search-hero {
    padding: 10px 0 40px;
}

.eyebrow {
    font-size: 10px;
}

.search-hero h1 {
    font-size: 43px;

    line-height: 1.05;
}

.search-hero > p {
    font-size: 13px;

    line-height: 1.6;
}


/* SEARCH */

.search-form {
    height: 52px;

    margin-top: 23px;
}

.search-form input {
    padding: 0 13px;

    font-size: 13px;
}

.search-form button {
    padding: 0 17px;

    font-size: 10px;
}

.did-you-mean {
    font-size: 12px;
}


/* RESULTS */

.results-header {
    align-items: flex-start;

    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 29px;
}

.results-header p {
    font-size: 11px;
}

.results-count {
    padding: 6px 9px;

    font-size: 9px;
}


/* GRID */

.recipe-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px 8px;
}

.recipe-image-wrapper {
    height: 225px;
}

.recipe-content {
    padding: 10px 2px 5px;
}

.recipe-content h2 {
    font-size: 16px;

    line-height: 1.2;
}

.recipe-meta {
    gap: 5px 8px;

    margin-top: 7px;
}

.recipe-meta span {
    font-size: 9px;
}

.recipe-card-link {
    margin-top: 10px;

    padding-top: 9px;

    font-size: 9px;
}

.recipe-card-link span:last-child {
    font-size: 14px;
}


/* PAGINATION */

.pagination {
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 40px;
}

.pagination-button {
    min-height: 36px;

    padding: 0 10px;

    font-size: 9px;
}

.pagination-pages {
    gap: 3px;
}

.pagination-page {
    width: 34px;
    height: 36px;

    font-size: 9px;
}

.pagination-ellipsis {
    width: 18px;

    font-size: 10px;
}


/* NO RESULTS */

.no-results {
    padding: 50px 20px;
}

.no-results-icon {
    width: 75px;
    height: 75px;

    font-size: 33px;
}

.no-results h2 {
    font-size: 30px;
}

.no-results p {
    font-size: 12px;
}
 

}

/* =========================================================
SMALL PHONES
========================================================= */

@media (max-width: 400px) {

 
.search-page .container {
    width: calc(100% - 20px);
}

.search-hero h1 {
    font-size: 38px;
}

.search-form {
    height: 49px;
}

.search-form input {
    font-size: 12px;
}

.search-form button {
    padding: 0 13px;
}

.results-header h2 {
    font-size: 26px;
}

.results-count {
    display: none;
}

.recipe-image-wrapper {
    height: 190px;
}

.recipe-content h2 {
    font-size: 14px;
}

.recipe-meta span {
    font-size: 8px;
}

.recipe-card-link {
    font-size: 8px;
}

.pagination-button {
    padding: 0 8px;

    font-size: 8px;
}

.pagination-page {
    width: 30px;
    height: 34px;
}
 

}

/* =========================================================
VERY SMALL PHONES
========================================================= */

@media (max-width: 340px) {

 
.search-hero h1 {
    font-size: 34px;
}

.recipe-grid {
    gap: 20px 6px;
}

.recipe-image-wrapper {
    height: 170px;
}

.recipe-content h2 {
    font-size: 13px;
}

.pagination-button {
    padding: 0 6px;
}

.pagination-page {
    width: 28px;
}
 

}

/* =========================================================
ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

 
*,
*::before,
*::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
}
 

}

/* =========================================================
FOCUS ACCESSIBILITY
========================================================= */

.recipe-card:focus-visible,
.pagination-button:focus-visible,
.pagination-page:focus-visible,
.primary-button:focus-visible,
.did-you-mean a:focus-visible {
outline: 2px solid var(--orange);

 
outline-offset: 3px;
 

}

/* =========================================================
IMAGE ERROR / SAFETY
========================================================= */

.recipe-image-wrapper img {
background: #eeeeee;
}

/* =========================================================
PREVENT HORIZONTAL OVERFLOW
========================================================= */

.search-page {
overflow-x: hidden;
}

/* =========================================================
   POPULAR DISHES
========================================================= */

.popular-dishes {
    margin-top: 20px;
    padding-top: 10px;
    animation: fadeUp 0.7s ease both;
}

.popular-header {
    margin-bottom: 25px;
}

.popular-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.popular-header h2 {
    margin: 0;

    color: var(--black);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(30px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.1;
}

.popular-header p {
    margin: 7px 0 0;

    color: #888888;

    font-size: 13px;
}

/* =========================================================
   POPULAR GRID
========================================================= */

.popular-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

/* =========================================================
   POPULAR CARD
========================================================= */

.popular-card {
    display: flex;
    align-items: center;

    min-width: 0;

    padding: 15px;

    border: 1px solid var(--light-gray);

    background: var(--white);

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.popular-card:hover {
    border-color: var(--orange);

    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.07);
}

/* =========================================================
   POPULAR ICON
========================================================= */

.popular-card-image {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 58px;
    height: 58px;

    margin-right: 13px;

    background: var(--orange-light);

    font-size: 28px;

    transition:
        transform 0.3s ease;
}

.popular-card:hover .popular-card-image {
    transform: scale(1.08);
}

/* =========================================================
   POPULAR CONTENT
========================================================= */

.popular-card-content {
    min-width: 0;
}

.popular-card-content h3 {
    margin: 0;

    overflow: hidden;

    color: var(--black);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.25s ease;
}

.popular-card:hover h3 {
    color: var(--orange);
}

.popular-card-content span {
    display: block;

    margin-top: 5px;

    color: #888888;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .popular-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .popular-dishes {
        margin-top: 10px;
    }

    .popular-header {
        margin-bottom: 20px;
    }

    .popular-header h2 {
        font-size: 29px;
    }

    .popular-header p {
        font-size: 11px;
    }

    .popular-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .popular-card {
        padding: 11px;
    }

    .popular-card-image {
        width: 45px;
        height: 45px;

        margin-right: 9px;

        font-size: 21px;
    }

    .popular-card-content h3 {
        font-size: 13px;
    }

    .popular-card-content span {
        font-size: 8px;
    }

}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .popular-grid {
        gap: 8px;
    }

    .popular-card {
        padding: 9px;
    }

    .popular-card-image {
        width: 40px;
        height: 40px;

        margin-right: 7px;

        font-size: 18px;
    }

    .popular-card-content h3 {
        font-size: 11px;
    }

}

.popular-card-image {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 58px;
    height: 58px;

    margin-right: 13px;

    overflow: hidden;

    background: var(--orange-light);

    font-size: 28px;
}

.popular-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.popular-card:hover .popular-card-image img {
    transform: scale(1.08);
}