/**
 * Recipes Page Styles
 * Color Palette: Cool Blues & Grays
 * Primary: Deep Blue (#3A5199)
 * Secondary: Bright Blue (#4D7CFE)
 * Dark: Dark Navy (#1E2C4F)
 * Light: Soft Gray (#F5F7FA)
 * Neutral: Light Blue Gray (#E9EEF6)
 */

/* 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, #4D7CFE, #3A5199);
    margin: 20px auto 0;
    border-radius: 3px;
}

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

.dr-category-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #1E2C4F;
    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: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(77, 124, 254, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-top: 3px solid #4D7CFE;
}

.dr-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(30, 44, 79, 0.2);
}

.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, #4D7CFE, #3A5199);
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(30, 44, 79, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dr-card-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(30, 44, 79, 0.25);
}

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

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

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

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

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

.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: #4D7CFE;
}

.dr-card-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1E2C4F;
    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: #4D7CFE;
    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: #3A5199;
}

.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: #F5F7FA;
    color: #1E2C4F;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(77, 124, 254, 0.08);
    transition: all 0.3s ease;
}

.dr-pagination .page-numbers.current {
    background: linear-gradient(90deg, #4D7CFE, #3A5199);
    color: #fff;
}

.dr-pagination .page-numbers:hover:not(.current) {
    background-color: #E9EEF6;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(77, 124, 254, 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: #F5F7FA;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(77, 124, 254, 0.08);
    border-top: 3px solid #4D7CFE;
}

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

.dr-no-posts p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #1E2C4F;
    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;
    }
}
