/* Blog Specific Styles */

/* Blog Index Page */
.blog-area {
    background-color: #f8f9fa;
}

.blog-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.blog-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

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

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.blog-meta span {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta span i {
    font-size: 12px;
    color: #D84A1B;
}

.blog-meta .author {
    font-weight: 500;
}

.blog-meta .date {
    color: #999;
}

.blog-meta .category {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.blog-meta .reading-time {
    color: #888;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.reading-time {
    color: #666;
    font-size: 14px;
}

/* Blog Single Page */
.blog-single-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
}

.blog-single-header-content h1 {
    color: white;
    margin-bottom: 15px;
}

.blog-single-header-content .subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.post-categories {
    margin-bottom: 20px;
}

.category-tag {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 10px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.category-tag:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.post-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
}

.post-featured-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.post-tags {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.tag:hover {
    background: #d5d6dc;
    color: white;
}

.author-bio {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.author-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.author-details h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.social-share {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }

/* Sidebar Styles */
.blog-sidebar {
    padding-left: 30px;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.categories-widget ul {
    list-style: none;
    padding: 0;
}

.categories-widget li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.categories-widget li:last-child {
    border-bottom: none;
}

.categories-widget a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-widget a:hover {
    color: #667eea;
}

.tags-cloud {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.recent-posts-widget ul {
    list-style: none;
    padding: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.recent-post-img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.recent-post-content h6 {
    margin-bottom: 8px;
    line-height: 1.3;
}

.recent-post-content h6 a {
    color: #333;
    text-decoration: none;
}

.recent-post-content h6 a:hover {
    color: #667eea;
}

.recent-post-content .date {
    color: #666;
    font-size: 12px;
}

.related-posts .related-post-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-widget h4 {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
}

.newsletter-form button {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #f8f9fa;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

.rss-link:hover {
    color: white;
}

/* Post Navigation */
.post-navigation {
    background: #f8f9fa;
    padding: 60px 0;
}

.post-nav-wrap {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.prev-post,
.next-post {
    flex: 1;
}

.prev-post a,
.next-post a {
    display: block;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.prev-post a:hover,
.next-post a:hover {
    color: #333;
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    color: #667eea;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

/* No posts state */
.no-posts,
.no-blog-posts {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 50px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .post-nav-wrap {
        flex-direction: column;
    }
    
    .next-post {
        text-align: left;
    }
    
    .blog-meta {
        gap: 10px;
    }
    
    .blog-meta span {
        font-size: 12px;
    }
    
    .blog-content {
        padding: 15px;
    }
}
