/**
 * Single Insight Post Styles
 *
 * @package Zero_Qubit_Astra_Child
 * @since 1.0.0
 */

/* Single Insight Header */
.single-insight .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.single-insight .entry-title {
    margin-bottom: 20px;
}

.single-insight .insight-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.single-insight .insight-date,
.single-insight .insight-categories,
.single-insight .insight-author {
    margin: 0 15px;
}

.single-insight .insight-categories a,
.single-insight .insight-author a {
    color: #0073e6;
    text-decoration: none;
}

.single-insight .insight-categories a:hover,
.single-insight .insight-author a:hover {
    text-decoration: underline;
}

/* Featured Image */
.single-insight .insight-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.single-insight .insight-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.single-insight .entry-content {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.7;
}

.single-insight .entry-content h2,
.single-insight .entry-content h3,
.single-insight .entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-insight .entry-content p {
    margin-bottom: 25px;
}

.single-insight .entry-content ul,
.single-insight .entry-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.single-insight .entry-content li {
    margin-bottom: 10px;
}

.single-insight .entry-content blockquote {
    border-left: 4px solid #0073e6;
    padding: 20px;
    margin: 30px 0;
    background-color: #f9f9f9;
    font-style: italic;
}

/* Video Container */
.single-insight .insight-video-container {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.single-insight .insight-video-container iframe,
.single-insight .insight-video-container object,
.single-insight .insight-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Download Box */
.single-insight .insight-download-box {
    margin: 40px 0;
    padding: 30px;
    text-align: center;
    background-color: #f5f9ff;
}

.single-insight .insight-download-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.single-insight .insight-download-box p {
    margin-bottom: 20px;
}

.single-insight .download-button {
    background-color: #28a745;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.single-insight .download-button:hover {
    background-color: #218838;
}

/* Tags */
.single-insight .insight-tags {
    margin: 30px 0;
    font-size: 16px;
}

.single-insight .tags-title {
    font-weight: 600;
    margin-right: 10px;
}

.single-insight .insight-tags a {
    display: inline-block;
    margin: 5px;
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.single-insight .insight-tags a:hover {
    background-color: #0073e6;
    color: #fff;
}

/* Share Section */
.single-insight .insight-share {
    margin: 40px 0;
    text-align: center;
}

.single-insight .insight-share h4 {
    margin-bottom: 15px;
}

.single-insight .share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.single-insight .share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.single-insight .twitter-share:hover {
    background-color: #1DA1F2;
}

.single-insight .linkedin-share:hover {
    background-color: #0077B5;
}

.single-insight .email-share:hover {
    background-color: #EA4335;
}

.single-insight .share-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.single-insight .twitter-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>');
}

.single-insight .linkedin-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>');
}

.single-insight .email-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
}

.single-insight .share-buttons a:hover .share-icon {
    filter: brightness(0) invert(1);
}

/* Author Box */
.single-insight .insight-author-box {
    display: flex;
    margin: 50px 0;
    padding: 30px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.single-insight .author-avatar {
    flex: 0 0 100px;
    margin-right: 20px;
}

.single-insight .author-avatar img {
    border-radius: 50%;
}

.single-insight .author-info {
    flex: 1;
}

.single-insight .author-name {
    margin-top: 0;
    margin-bottom: 10px;
}

.single-insight .author-bio {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.single-insight .author-link {
    color: #0073e6;
    text-decoration: none;
    font-weight: 600;
}

.single-insight .author-link:hover {
    text-decoration: underline;
}

/* Navigation */
.single-insight .insight-navigation {
    margin: 50px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.single-insight .nav-links {
    display: flex;
    justify-content: space-between;
}

.single-insight .nav-previous,
.single-insight .nav-next {
    flex: 0 0 48%;
}

.single-insight .nav-next {
    text-align: right;
}

.single-insight .nav-title {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.single-insight .post-title {
    font-weight: 600;
    color: #333;
}

.single-insight .nav-previous a,
.single-insight .nav-next a {
    text-decoration: none;
}

.single-insight .nav-previous a:hover .post-title,
.single-insight .nav-next a:hover .post-title {
    color: #0073e6;
}

/* Comments */
.single-insight .comments-area {
    margin-top: 50px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .single-insight .insight-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .single-insight .insight-date,
    .single-insight .insight-categories,
    .single-insight .insight-author {
        margin: 5px 0;
    }
    
    .single-insight .insight-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .single-insight .author-avatar {
        margin: 0 auto 20px;
    }
    
    .single-insight .nav-links {
        flex-direction: column;
    }
    
    .single-insight .nav-previous,
    .single-insight .nav-next {
        flex: 0 0 100%;
        margin-bottom: 20px;
        text-align: center;
    }
}
