/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Card Styles */
.post-card {
    transition: all 0.3s ease;
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.post-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

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

/* Category Pills */
.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.category-pill:hover {
    background: var(--primary-color);
    color: white;
}

/* Search Section */
.search-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.search-section h1 {
    color: white;
    font-weight: 700;
}

/* Custom Button Styles */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-card .card-img-top {
        height: 150px;
    }
}

/* Badge Styles */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading Animation */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 