/* Category Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    padding: 1rem 0;
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: #daa520;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffd700;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
    color: #fff;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 3rem 0;
    border-bottom: 3px solid #daa520;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(218,165,32,0.05)" stroke-width="0.5"/></svg>');
    opacity: 0.3;
}

.category-title-section {
    position: relative;
    z-index: 1;
}

.category-title {
    font-family: 'Vazirmatn', 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.category-stats {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

.stat-item {
    background: rgba(218, 165, 32, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: #daa520;
    font-weight: 600;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

/* Filter Section */
.filter-section {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group,
.sort-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label,
.sort-group label {
    font-weight: 600;
    color: #2c1810;
    font-size: 0.95rem;
}

.filter-select,
.sort-select {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #2c1810;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

.filter-select:hover,
.sort-select:hover {
    border-color: #daa520;
}

.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #daa520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

/* Posts Grid Section */
.posts-grid-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #daa520;
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(218, 165, 32, 0.95);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.post-date,
.post-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-title {
    margin: 0 0 0.75rem 0;
}

.post-title a {
    color: #2c1810;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    transition: color 0.3s;
    display: block;
}

.post-title a:hover {
    color: #daa520;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.post-location {
    color: #666;
    font-size: 0.9rem;
}

.post-rating {
    color: #daa520;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Pagination */
.pagination-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #2c1810;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 50px;
}

.page-btn:hover:not(.disabled) {
    background: #daa520;
    color: #fff;
    border-color: #daa520;
}

.page-btn.active {
    background: #daa520;
    color: #fff;
    border-color: #daa520;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: #666;
    padding: 0 0.5rem;
}

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

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group,
    .sort-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select,
    .sort-select {
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn {
        padding: 0.6rem 1rem;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 2rem 0;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .filter-section {
        padding: 1.5rem 0;
    }
    
    .posts-grid-section {
        padding: 2rem 0;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-content {
        padding: 1.25rem;
    }
    
    .post-title a {
        font-size: 1.05rem;
    }
}
