/*=================================
  Aqarat Plus - Blog Styles
=================================*/

/* Blog Hero */
.blog-hero {
    position: relative;
    height: 450px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    margin-bottom: 60px;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-category-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.blog-category-badge:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.blog-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.3;
}

.blog-meta-header {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.blog-meta-header img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Post Layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* Post Content */
.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-right: 15px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.entry-content blockquote {
    background: var(--bg-light);
    border-right: 5px solid var(--primary-color);
    padding: 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 8px;
}

.entry-content img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

/* Tags & Share */
.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tag-cloud-link {
    background: var(--bg-light);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.tag-cloud-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Related Posts */
.related-posts-section {
    background: var(--bg-light);
    padding: 80px 0;
    margin-top: 80px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-thumb {
    height: 200px;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    padding: 20px;
}

.related-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.related-title a {
    color: var(--secondary-color);
}

.related-title a:hover {
    color: var(--primary-color);
}

/* Sidebar Styles */
.blog-sidebar .widget {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.blog-sidebar .widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
}

.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.blog-sidebar ul li:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar ul li a {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.blog-sidebar ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 40px;
    }

    .blog-hero {
        height: 350px;
    }

    .blog-title {
        font-size: 2rem;
    }
}