/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Enhanced Blog Posts Styles */
.blog-posts-enhanced-container {
    position: relative;
}

.box-blog-post-enhanced {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}

.box-blog-post-enhanced.enhanced-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.box-blog-post-enhanced .box-image {
    position: relative;
    overflow: hidden;
}

.box-blog-post-enhanced .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.box-blog-post-enhanced .post-format-icon {
    z-index: 3;
    pointer-events: none;
}

.box-blog-post-enhanced .post-format-icon .overlay-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
}

.box-blog-post-enhanced:hover .post-format-icon .overlay-icon {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

.blog-post-inner-enhanced {
    padding: 0;
}

.blog-post-inner-enhanced .post-categories {
    margin-bottom: 12px;
}

.blog-post-inner-enhanced .post-categories .cat-label {
    background: var(--primary-color, #0065a1);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.blog-post-inner-enhanced .post-title {
    margin: 15px 0 12px 0;
    line-height: 1.3;
}

.blog-post-inner-enhanced .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-inner-enhanced .post-title a:hover {
    color: var(--primary-color, #0065a1);
}

.post-meta-enhanced {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.post-meta-enhanced .post-author-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-enhanced .post-author-avatar img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.post-meta-enhanced .author-name {
    font-weight: 500;
    color: #333;
}

.post-meta-enhanced .post-date-enhanced,
.post-meta-enhanced .reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-enhanced i {
    font-size: 12px;
    opacity: 0.7;
}

.post-excerpt-enhanced {
    margin-bottom: 20px;
}

.post-excerpt-enhanced p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.post-comments-enhanced {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    color: #666;
}

.post-readmore-enhanced {
    margin-bottom: 15px;
}

.post-readmore-enhanced .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 20px;
}

.post-readmore-enhanced .button:hover {
    transform: translateX(3px);
}

.post-readmore-enhanced .button i {
    transition: transform 0.3s ease;
}

.post-readmore-enhanced .button:hover i {
    transform: translateX(3px);
}

.social-share-enhanced {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-share-enhanced a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-share-enhanced .share-twitter {
    background: #1da1f2;
}

.social-share-enhanced .share-facebook {
    background: #4267b2;
}

.social-share-enhanced .share-linkedin {
    background: #0077b5;
}

.social-share-enhanced a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Featured Post Enhanced Styling */
.featured-post-enhanced .box-blog-post-enhanced {
    border: 2px solid var(--primary-color, #0065a1);
}

.featured-post-enhanced .box-blog-post-enhanced::before {
    content: "Featured";
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color, #0065a1);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 4;
}

/* Masonry Container */
.masonry-container .row {
    display: flex;
    flex-wrap: wrap;
}

.masonry-container .col {
    display: flex;
    flex-direction: column;
}

.masonry-container .col-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.masonry-container .box-blog-post-enhanced {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.masonry-container .box-text {
    flex: 1;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .post-meta-enhanced {
        gap: 10px;
        font-size: 12px;
    }
    
    .post-meta-enhanced .post-author-avatar {
        gap: 6px;
    }
    
    .post-meta-enhanced .post-author-avatar img {
        width: 20px;
        height: 20px;
    }
    
    .social-share-enhanced a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .box-blog-post-enhanced.enhanced-hover:hover {
        transform: none;
    }
}

/* Dark Mode Support */
.dark .box-blog-post-enhanced {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
}

.dark .blog-post-inner-enhanced .post-title a {
    color: #fff;
}

.dark .blog-post-inner-enhanced .post-title a:hover {
    color: var(--primary-color, #0065a1);
}

.dark .post-meta-enhanced,
.dark .post-excerpt-enhanced p,
.dark .post-comments-enhanced {
    color: #ccc;
}

.dark .post-meta-enhanced .author-name {
    color: #fff;
}

.dark .social-share-enhanced {
    border-top-color: rgba(255,255,255,0.1);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item-enhanced[data-animate="fadeInUp"] {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading State */
.blog-posts-enhanced-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.blog-posts-enhanced-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-color, #0065a1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

    .post-meta-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .box-blog-post-enhanced .post-format-icon .overlay-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
