/* ============================================================
   Insight Strip — Horizontal scrollable insight chip bar
   Placed between hero section and main content on every page.
   ============================================================ */

.insight-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(0,74,173,0.04) 0%, rgba(155,89,182,0.04) 100%);
    border: 1px solid rgba(0,74,173,0.1);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,74,173,0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.insight-strip::-webkit-scrollbar {
    height: 4px;
}

.insight-strip::-webkit-scrollbar-track {
    background: transparent;
}

.insight-strip::-webkit-scrollbar-thumb {
    background: rgba(0,74,173,0.15);
    border-radius: 4px;
}

.insight-strip-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #004aad;
    border-right: 2px solid rgba(0,74,173,0.15);
    flex-shrink: 0;
}

.insight-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 200px;
    max-width: 380px;
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: default;
    position: relative;
}

.insight-chip:hover {
    box-shadow: 0 3px 12px rgba(0,74,173,0.12);
    transform: translateY(-1px);
}

.insight-chip-bar {
    width: 3px;
    height: 28px;
    border-radius: 3px;
    flex-shrink: 0;
}

.insight-chip-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.insight-chip-text {
    font-size: 0.78rem;
    color: #333;
    line-height: 1.35;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.insight-chip-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,74,173,0.06);
    color: #004aad;
    font-size: 0.65rem;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    padding: 0;
    transition: background 0.2s;
    margin-left: auto;
}

.insight-chip-share:hover {
    background: rgba(0,74,173,0.15);
}

/* Responsive: on mobile, chips scroll horizontally */
@media (max-width: 768px) {
    .insight-strip {
        padding: 10px 12px;
        gap: 8px;
    }

    .insight-chip {
        min-width: 180px;
        max-width: 300px;
        padding: 6px 10px;
    }

    .insight-chip-text {
        font-size: 0.72rem;
    }

    .insight-strip-label {
        font-size: 0.65rem;
        padding: 4px 8px 4px 4px;
    }
}

/* Social share modal overlay */
.social-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.social-share-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.social-share-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: #333;
    text-decoration: none;
}

.social-share-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.social-share-btn-download {
    background: #004aad;
    color: #fff;
    border-color: #004aad;
}

.social-share-btn-download:hover {
    background: #003580;
}

/* Social card rendering (hidden by default, captured by html2canvas) */
.social-card {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.social-card-preview {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: scale(0.5);
    transform-origin: top left;
    margin-bottom: -50%;
    pointer-events: none;
}
