/**
 * Recipes Page Styles
 */

/* Color Variables */
:root {
    --primary: #6B9080;     /* Sage Green */
    --secondary: #4D7063;   /* Forest Green */
    --dark: #2D4739;        /* Deep Green */
    --light: #F6FFF8;       /* Mint Cream */
    --neutral: #CCE3DE;     /* Pale Sage */
    --text-dark: #2D4739;   /* Text Dark */
    --text-medium: #4D7063; /* Text Medium */
    --text-light: #F6FFF8;  /* Text Light */
}

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

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

.dr-category-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.dr-category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.dr-category-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--text-medium);
    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 15px rgba(107, 144, 128, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--neutral);
}

.dr-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(107, 144, 128, 0.15);
}

.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, var(--primary), var(--secondary));
    color: var(--light);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 5px rgba(107, 144, 128, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dr-card-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 144, 128, 0.3);
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

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

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

.dr-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dr-card-title a:hover {
    color: var(--primary);
}

.dr-card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.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: var(--primary);
}

.dr-card-excerpt {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.dr-read-more {
    display: inline-flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background-color: transparent;
}

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

.dr-read-more:hover {
    color: var(--light);
    background-color: var(--primary);
}

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

/* Pagination styling */
.dr-pagination {
    text-align: center;
    margin-top: 40px;
    font-family: 'Poppins', 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: var(--text-dark);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(107, 144, 128, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral);
}

.dr-pagination .page-numbers.current {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--light);
    border-color: transparent;
}

.dr-pagination .page-numbers:hover:not(.current) {
    background-color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(107, 144, 128, 0.15);
    border-color: var(--primary);
}

.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;
    }
}
