/**
 * Authority Content & CV Tools - Injections & Trackers CSS
 */

/* 1. E-E-A-T Metadata Badge */
.eeat-meta-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 30px;
}
.eeat-meta-badge .badge-checked {
    display: inline-flex;
    align-items: center;
    background: #e2fbe8;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eeat-meta-badge .badge-divider {
    color: #cbd5e1;
    font-weight: bold;
}
.eeat-meta-badge .badge-text strong {
    color: #1e293b;
}

/* 2. Table of Contents (TOC) Generator */
.toc-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}
.toc-wrapper:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.toc-title {
    padding: 16px 24px;
    cursor: pointer;
    user-select: none;
    background: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.3s;
}
.toc-title:hover {
    background: #f1f5f9;
}
.toc-arrow {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toc-list {
    padding: 20px 24px 20px 40px;
    margin: 0;
    list-style-type: disc;
    line-height: 1.8;
}
.toc-list li {
    margin-bottom: 8px;
}
.toc-list li.toc-sub {
    margin-left: 20px;
    list-style-type: circle;
}
.toc-list a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, text-decoration 0.2s;
}
.toc-list a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 3. Editorial Advice Card */
.editorial-insight {
    background: #fffdf5;
    border-left: 4px solid #eab308;
    padding: 24px;
    margin: 35px 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.05);
    transition: transform 0.2s ease;
}
.editorial-insight:hover {
    transform: translateX(4px);
}
.editorial-insight .insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}
.editorial-insight .insight-icon {
    font-size: 1.25rem;
}
.editorial-insight .insight-title {
    color: #dc2626;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}
.editorial-insight .insight-body {
    margin: 0;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
    font-style: italic;
}

/* 4. Related Stories Card */
.mid-related-stories {
    background: #f0f6ff;
    border-left: 4px solid #3b82f6;
    padding: 24px;
    margin: 35px 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.04);
}
.mid-related-stories .related-title {
    color: #2563eb;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mid-related-stories .related-list {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.7;
}
.mid-related-stories .related-list li {
    margin-bottom: 12px;
}
.mid-related-stories .related-list li:last-child {
    margin-bottom: 0;
}
.mid-related-stories .related-list a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #cbd5e1;
    transition: color 0.2s, border-color 0.2s;
}
.mid-related-stories .related-list a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* 5. Sticky WhatsApp Mobile Banner */
.whatsapp-mobile-banner {
    background: #f0fdf4;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 35px 0;
    border: 1px solid #dcfce7;
    border-left: 5px solid #22c55e;
}
.whatsapp-mobile-banner .wa-banner-title {
    color: #166534;
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 800;
    margin-top: 0;
    line-height: 1.3;
}
.whatsapp-mobile-banner .wa-banner-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #16a34a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transition: transform 0.2s, background-color 0.2s;
}
.whatsapp-mobile-banner .wa-banner-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}
@media (min-width: 768px) {
    .whatsapp-mobile-banner {
        display: none !important; /* Mobile only, hidden on desktop */
    }
}

/* 6. Explainer Alert */
.opportunity-explainer {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    padding: 20px;
    margin-top: 40px;
    border-radius: 6px;
}
.opportunity-explainer.news-explainer {
    background: #f0fdfa;
    border-left-color: #14b8a6;
}
.opportunity-explainer p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
}
.opportunity-explainer.news-explainer p {
    color: #115e59;
}
.opportunity-explainer strong {
    color: #1e293b;
}

/* 7. Feedback & Outcome Trackers */
.feedback-tracker-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.feedback-tracker-box h3 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}
.feedback-tracker-box p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
    margin-top: 0;
}
.tracker-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tracker-option-row, .comment-cta-row {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.comment-cta-row {
    text-decoration: none;
}
.tracker-option-row:hover, .comment-cta-row:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}
.tracker-option-row .pct {
    background: #ffffff;
    color: #1e293b;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}
.tracker-option-row:hover .pct {
    border-color: #bfdbfe;
    color: #2563eb;
}
.tracker-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 8. CV Matcher CTA */
.cv-matcher-cta {
    background: #f8fafc;
    border: 2px dashed #3b82f6;
    border-radius: 16px;
    padding: 35px 30px;
    margin-top: 40px;
    text-align: center;
}
.cv-matcher-cta h3 {
    margin-top: 0;
    color: #2563eb;
    font-size: 1.35rem;
    font-weight: 800;
}
.cv-matcher-cta p {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 24px;
    margin-top: 8px;
}
.cv-matcher-cta .btn-match {
    display: inline-block;
    background: #8b5cf6;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.cv-matcher-cta .btn-match:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* 9. Google News E-E-A-T CTA */
.google-news-cta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 25px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.google-news-cta p {
    margin: 0;
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
}
.google-news-cta .btn-gnews {
    background: #1a73e8;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s, transform 0.2s;
}
.google-news-cta .btn-gnews:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

/* 10. Injections Delayed Reveal & Shimmer Overlay */
.authority-delay-reveal {
    position: relative;
    width: 100%;
}
.authority-reveal-content {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.authority-skeleton-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    box-sizing: border-box;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.authority-shimmer-bar {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: authority-shimmer 1.5s infinite;
    border-radius: 6px;
    width: 80%;
}
.authority-shimmer-bar.short {
    width: 45%;
}

@keyframes authority-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Revealed active state */
.authority-delay-reveal.is-revealed .authority-skeleton-overlay {
    opacity: 0;
    pointer-events: none;
}
.authority-delay-reveal.is-revealed .authority-reveal-content {
    opacity: 1;
}
