/* Blog-specific CSS styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0 4rem;
    margin-top: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-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"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.25rem;
    opacity: 1;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* Blog Content Layout */
.blog-content {
    padding: 4rem 0;
    background: var(--light-color);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* Blog Main Content */
.blog-main {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.blog-posts {
    padding: 2rem;
}

/* Blog Post Card */
.blog-post {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post:hover {
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-category {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--light-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 1rem;
}

.read-more::after {
    content: '→';
    transition: var(--transition);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.page-info {
    font-weight: 600;
    color: var(--text-primary);
}

.pagination .btn {
    min-width: 100px;
}

.pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.category-list span {
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.recent-post-title a {
    color: inherit;
    transition: var(--transition);
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    cursor: pointer;
    transition: var(--transition);
}

.tag-cloud .tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Removed unused search widget - search functionality not implemented */

/* Removed unused newsletter widget - newsletter functionality not implemented */

/* Removed unused loading and empty states - not implemented */

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 4rem 0 3rem;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }
    
    .blog-posts {
        padding: 1.5rem;
    }
    
    .blog-post {
        padding: 1.5rem 0;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .pagination {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination .btn {
        width: 100%;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-posts {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .post-tags {
        gap: 0.25rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}
