/**
 * Recipes Page Styles
 */

/* Container layout */
.dr-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header styling */
.dr-category-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.dr-category-header:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    margin: 20px auto 0;
    border-radius: 3px;
}

.dr-category-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dr-category-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 25px 0;
    line-height: 1.8;
    text-align: left;
    padding: 0 10px;
    letter-spacing: 0.01em;
    font-weight: 400;
}

/* Recipe cards grid */
.dr-category-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Card styling */
.dr-category-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.dr-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.dr-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card image styling */
.dr-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.dr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dr-category-card:hover .dr-card-image img {
    transform: scale(1.05);
}

.dr-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dr-card-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Card content styling */
.dr-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dr-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.3;
}

.dr-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dr-card-title a:hover {
    color: #ff7e5f;
}

.dr-card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #777;
}

.dr-card-date, .dr-card-author {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.dr-card-date svg, .dr-card-author svg {
    margin-right: 5px;
    color: #ff7e5f;
}

.dr-card-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.dr-card-footer {
    margin-top: auto;
}

.dr-read-more {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff7e5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dr-read-more svg {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dr-read-more:hover {
    color: #ff5f3b;
}

.dr-read-more:hover svg {
    transform: translateX(5px);
}

/* Pagination styling */
.dr-pagination {
    text-align: center;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
}

.dr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    margin: 0 5px;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dr-pagination .page-numbers.current {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #fff;
}

.dr-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.dr-pagination .prev,
.dr-pagination .next {
    padding: 0 15px;
}

.dr-pagination svg {
    vertical-align: middle;
}

/* No posts message */
.dr-no-posts {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.dr-no-posts h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.dr-no-posts p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .dr-category-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dr-category-title {
        font-size: 2.2rem;
    }
    
    .dr-category-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .dr-category-posts {
        grid-template-columns: 1fr;
    }
    
    .dr-category-header {
        margin-bottom: 30px;
    }
    
    .dr-category-title {
        font-size: 1.8rem;
    }
    
    .dr-card-title {
        font-size: 1.2rem;
    }
}
