
/* Start of Looking For Section */
.looking-for-section {
	text-align: center;
	width: calc(100% - 40px);
	max-width: 1200px;
}

.looking-for-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1.5px solid #eee;
    color: #333;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.category-item img {
    height: 22px;
}

.category-item:hover {
    background-color: #ffb6b2c8;
	border-color: #e54e47;
    transform: translateY(-2px);
}

.category-item.active img { 
    fill: white;
}
.category-item.active {
	background-color: #ff8984;
	border-color: #bc514c;
}

/* End of Looking For Section */

/* ~~~~~~~~~~~ */

/* Start of Recipes Grid */

.tags {    
	position: absolute;
	bottom: 10px;
	left: 10px;
	font-size: 14px;
	display: flex;
	gap: 5px;
}
.tags span {
    padding: 4px;
	background-color: #98140dc8;
	color: white;
	border-radius: 10px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.recipes-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    width: 100%;
	max-width: 1200px;
    min-height: 300px;
    margin-bottom: 20px;
}

.recipes-container a.recipe-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.recipe-item {
	background: #fff;
	border-radius: 1.2rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	padding: 10px;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.recipe-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.recipe-item > span {
    font-size: 26px;
	font-weight: 500;
	color: #2c2c2c;
	display: block;
	margin-bottom: 0.8rem;
	text-align: left;
    text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-image-container {
	border-radius: 0.8rem;
	overflow: hidden;
	margin-bottom: 10px;
	height: 200px;
    background-color: #ececec;
    position: relative;
}

.recipe-image-container img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.recipe-item a {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
	color: #fff;
	background-color: #2c2c2c;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background-color 0.25s ease, color 0.25s ease;
	position: relative;
	overflow: hidden;
	height: 40px;
	border-radius: 20px;
}

/* Shine/pulse animation on hover */
.recipe-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: skewX(-25deg);
    opacity: 0;
}

.recipe-item a:hover {
    background-color: var(--main-accent-color);
    animation: buttonPulse 1.2s ease-in-out;
}

.recipe-item a:hover::before {
    animation: shine 0.75s forwards;
}

/* Keyframes for the shine sweep */
@keyframes shine {
    0% {
        left: -75%;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        left: 125%;
        opacity: 0;
    }
}

/* Subtle pulse brightness */
@keyframes buttonPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

/* End of Recipes section */

.recipes-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 1200px;  
    width: calc(100% - 40px);
}


.recipes-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .looking-for-section h2 {
        font-size: 1.4rem;
		margin-bottom: 20px;
    }

    .categories-container {
	    gap: 5px;
    }
}