/* Blog-specific styles */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.post-content h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.post-content h2 {
    font-size: 2rem;
    color: #34495e;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #34495e;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.post-content a {
    color: #007bff;
    text-decoration: underline;
}

.post-content a:hover {
    color: #0056b3;
    text-decoration: none;
}

.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.tag-badge {
    font-size: 1rem;
    border-radius: 1rem;
    text-decoration: none !important;
    display: inline-block;
    margin: 0.2rem;
    color: #007bff;
}

.tag-badge:hover {
    color: #000 !important;
    text-decoration: underline !important;
    text-decoration-color: #000 !important;
    text-underline-offset: 2px;
    opacity: 1;
}

.back-link {
    color: #6c757d;
    text-decoration: none !important;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.back-link:hover {
    color: #007bff;
    text-decoration: none !important;
}

.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-card .card-text {
    color: #6c757d;
    line-height: 1.6;
}

.search-form {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Blog Card Styles */
.blog-card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.blog-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #3b82f6;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.blog-card-meta-left {
    display: flex;
    align-items: center;
    color: #6b7280;
    gap: 0.75rem;
}

.blog-card-meta-left i {
    color: #9ca3af;
    font-size: 0.8rem;
}

.blog-card-status {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.blog-card-excerpt {
    color: #4b5563;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.blog-card-tag {
    background: #f3f4f6;
    color: #374151;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.blog-card-tag:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    transform: translateY(-1px);
}

.blog-card-tag-more {
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.blog-card-button {
    margin-top: auto;
    width: 100%;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    background: #3b82f6;
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-card-button:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
}

.blog-card-image {
    overflow: hidden;
    max-height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-container {
        padding: 10px;
    }

    .post-content h1 {
        font-size: 2rem;
    }

    .post-content h2 {
        font-size: 1.75rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .blog-card-header {
        padding: 1.25rem;
    }

    .blog-card-body {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-card-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .blog-card-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}