
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 200px);
}


.page-header {
    text-align: center;
    padding: 60px 0 40px;
    background-color: #fff;
}

.category-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}




.filter-section {
    background-color: #fff;
    padding: 0 0 60px;
}


.category-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
}



.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
    text-align: center;
}

.filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}


.filter-select {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 50px;
    text-align: center;
    font-weight: 500;
}

.filter-select:focus {
    outline: none;
    border-color: #2c8295;
    box-shadow: 0 0 0 4px rgba(44, 130, 149, 0.1);
    
}

.filter-select:hover {
    border-color: #2c8295;
    
}

.recipes-grid-section {
    background-color: #fff;
    padding: 20px 0 80px;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.recipe-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f3f4f6;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.recipe-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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


.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.heart-icon {
    font-size: 18px;
    color: #ccc;
    transition: all 0.3s ease;
}

.favorite-btn.active .heart-icon {
    color: #e53e3e;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


.recipe-content {
    height: 100%;
    padding: 20px;
    background: linear-gradient(white, rgb(231, 250, 254));
}

.recipe-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.meta-icon {
    font-size: 16px;
    opacity: 0.8;
}

.meta-text {
    font-weight: 500;
}


.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


@media (max-width: 1024px) {
    .recipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .filter-group {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-description {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .filter-section {
        padding: 0 0 40px;
    }
    
    .category-filter-container {
        justify-content: stretch;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .filter-select {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .recipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .recipes-grid-section {
        padding: 15px 0 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-description {
        font-size: 14px;
    }
    
    .filter-label {
        font-size: 15px;
    }
    
    .filter-select {
        padding: 12px 18px;
        font-size: 14px;
        padding-right: 45px;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recipe-card {
        border-radius: 12px;
    }
    
    .recipe-content {
        padding: 16px;
    }
    
    .recipe-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .meta-icon {
        font-size: 14px;
    }
    
    .favorite-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
    
    .heart-icon {
        font-size: 16px;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipe-card {
    animation: fadeInUp 0.6s ease forwards;
}

.recipe-card:nth-child(1) { animation-delay: 0.1s; }
.recipe-card:nth-child(2) { animation-delay: 0.2s; }
.recipe-card:nth-child(3) { animation-delay: 0.3s; }
.recipe-card:nth-child(4) { animation-delay: 0.4s; }


.recipe-card {
    opacity: 0;
    transform: translateY(30px);
}


.filter-select:focus,
.favorites-toggle:focus {
    transform: translateY(-2px);
}


.search-input:focus {
    transform: translateY(-2px);
}


html {
    scroll-behavior: smooth;
}


::selection {
    background-color: rgba(44, 130, 149, 0.2);
    color: #2c8295;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    margin-top: 40px;
    border: 2px dashed #e2e8f0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-results-message h3 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 600;
}

.no-results-message p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}


.filter-reset-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.filter-reset-btn:hover {
    background: #e5e7eb;
    color: #374151;
}


.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


.filter-select.active,
.favorites-toggle.active {
    border-color: #2c8295;
    background-color: #f0f9ff;
}


.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.search-suggestion:hover {
    background-color: #f8fafc;
}

.search-suggestion:last-child {
    border-bottom: none;
}


@media (max-width: 768px) {
    .no-results-message {
        padding: 40px 15px;
        margin-top: 30px;
    }
    
    .no-results-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .no-results-message h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .no-results-message p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .no-results-message {
        padding: 30px 10px;
        margin-top: 20px;
    }
    
    .no-results-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .no-results-message h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .no-results-message p {
        font-size: 13px;
    }
}
