/**
 * Custom styles for category pages
 * Elegant and professional design for Herby Recipes
 * 
 * Color Palette: Fresh Greens
 * Primary: Sage Green (#6B9080)
 * Secondary: Forest Green (#4D7063)
 * Dark: Deep Green (#2D4739)
 * Light: Mint Cream (#F6FFF8)
 * Neutral: Pale Sage (#CCE3DE)
 */

/* Main container */
.dr-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Nunito', sans-serif;
    color: #2D4739;
}

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

.dr-category-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6B9080, #4D7063);
}

.dr-category-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2D4739;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

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

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

/* Card styling */
.dr-category-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    height: 100%;
    border: 1px solid rgba(204, 227, 222, 0.3);
}

.dr-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(107, 144, 128, 0.2);
    border-color: rgba(204, 227, 222, 0.5);
}

.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, #6B9080, #4D7063);
    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(107, 144, 128, 0.3);
    font-family: 'Poppins', sans-serif;
}

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

.dr-card-header {
    margin-bottom: 15px;
}

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

.dr-card-title a {
    color: #2D4739;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.dr-card-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #777;
    gap: 15px;
}

.dr-card-date, 
.dr-card-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dr-card-meta svg {
    color: #6B9080;
}

/* Card excerpt styling */
.dr-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.dr-card-excerpt p {
    margin-bottom: 0;
}

/* Card footer styling */
.dr-card-footer {
    margin-top: auto;
}

.dr-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6B9080;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

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

.dr-read-more svg {
    transition: transform 0.2s ease;
}

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

/* Pagination styling */
.dr-pagination {
    margin-top: 40px;
    text-align: center;
}

.dr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dr-pagination .page-numbers.current {
    background: linear-gradient(90deg, #6B9080, #4D7063);
    color: #fff;
}

.dr-pagination .page-numbers:hover:not(.current) {
    background-color: #eaeaea;
}

.dr-pagination .prev,
.dr-pagination .next {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
}

/* No posts styling */
.dr-no-posts {
    text-align: center;
    padding: 50px 20px;
    background-color: #F6FFF8;
    border-radius: 10px;
    border: 1px solid rgba(204, 227, 222, 0.5);
}

.dr-no-posts h2 {
    font-size: 28px;
    color: #2D4739;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.dr-no-posts p {
    font-size: 16px;
    color: #4D7063;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Nunito', sans-serif;
}

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

@media (max-width: 768px) {
    .dr-category-container {
        padding: 30px 15px;
    }
    
    .dr-category-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .dr-category-title {
        font-size: 32px;
    }
    
    .dr-card-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .dr-category-header {
        margin-bottom: 30px;
    }
    
    .dr-category-title {
        font-size: 28px;
    }
    
    .dr-category-description {
        font-size: 15px;
    }
    
    .dr-card-title {
        font-size: 20px;
    }
    
    .dr-pagination .page-numbers {
        padding: 6px 12px;
        font-size: 14px;
    }
}
