/* category-page.css */

:root {
    --primary: #ff6b6b;
    --secondary: #ffa5a5;
    --accent: #4ecdc4;
    --light: #f7fff7;
    --dark: #2d3142;
}

/* Kategori başlık ve yolu */
.category-path {
    margin-bottom: 1px;
    font-size: 14px;
    color: #666;
}

.category-path a {
    color: var(--primary);
    text-decoration: none;
}

.current-category {
    font-weight: 500;
}

.category-title {
    color: var(--primary);
    margin-bottom: 1px;
    font-size: 28px;
    text-align: center;
    position: relative;
}

.category-title:after {
    content: "";
    display: block;
    width: 10px;
    height: 3px;
    background: var(--primary);
    margin: 8px auto 0;
}

/* Filtreleme bölümü */
.recipe-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    font-weight: 500;
    color: #555;
}

.filter-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

/* Tarif kartları grid düzeni */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Tarif kartı stili */
.recipe-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.recipe-info {
    padding: 15px;
}

.recipe-name {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.recipe-name a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease
    color var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recipe-name a:hover {
    color: var(--primary);
}

.recipe-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: gold;
    margin-right: 5px;
    font-size: 14px;
}

.rating-count {
    color: #777;
    font-size: 13px;
}

.recipe-preview {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-meta i {
    color: var(--primary);
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: 0 3px;
    text-decoration: none;
    border-radius: 4px;
    background-color: white;
    color: var(--dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination a.active {
    background-color: var(--primary);
    color: white;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .recipe-filter {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .filter-item {
        justify-content: space-between;
    }
    
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .recipe-card {
        max-width: 100%;
    }
}