/* Article Preview Tooltips */

.article-preview-tooltip {
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 400px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-preview-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.article-preview-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.tooltip-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tooltip-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tooltip-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.tooltip-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tooltip-meta-item svg {
    width: 14px;
    height: 14px;
}

.tooltip-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tooltip-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #666;
    font-weight: 500;
}

.tooltip-badge.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.tooltip-badge.priority-medium {
    background: #fef3c7;
    color: #f59e0b;
}

.tooltip-badge.priority-low {
    background: #dbeafe;
    color: #3b82f6;
}

/* Dark mode */
body.dark-mode .article-preview-tooltip {
    background: #1f2937;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .article-preview-tooltip::before {
    border-bottom-color: #1f2937;
}

body.dark-mode .tooltip-title {
    color: #f9fafb;
}

body.dark-mode .tooltip-excerpt {
    color: #d1d5db;
}

body.dark-mode .tooltip-meta {
    color: #9ca3af;
}

body.dark-mode .tooltip-badge {
    background: #374151;
    color: #d1d5db;
}

/* Hover effect on article titles */
.article-title-hover {
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.article-title-hover:hover {
    color: #3b82f6;
}

/* Loading state for tooltip */
.tooltip-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tooltip-loading .spinner {
    width: 20px;
    height: 20px;
}
