/* Blog Specific Styles */

/* Blog Header */
.blog-header {
    margin-top: calc(var(--nav-height) + 2rem);
    margin-bottom: 4rem;
}

/* Search Widget */
.search-widget {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 50px;
    /* Full pill matches buttons */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-widget .form-control {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding-left: 1.5rem;
}

.search-widget .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.search-widget .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blog Post Cards */
.blog-post {
    height: 100%;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

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

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

.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-post .post-image {
    height: 400px;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-meta i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Typography */
.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
}

/* Tech Bro Read More */
.read-more {
    font-family: 'Fira Code', 'Roboto Mono', monospace;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Pagination */
.blog-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin: 0 0.25rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
}

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

.pagination .page-link:hover {
    transform: translateY(-2px);
    background: var(--glass-border);
    color: var(--primary-color);
}