/* ═══════════════════════════════════════════════════════════
   DEZPORTO — @Mentions System Styles (Autocomplete, Links & Hover Cards)
   ═══════════════════════════════════════════════════════════ */

/* 1. Mention Links in Article Content */
.mention-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(232, 39, 58, 0.08);
    color: #e8273a;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(232, 39, 58, 0.2);
}
.mention-link:hover {
    background: #e8273a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(232, 39, 58, 0.3);
}

/* 2. Autocomplete Popover (Editor) */
.dz-mentions-popover {
    position: absolute;
    z-index: 9999;
    background: #111827;
    border: 1px solid #1f2d42;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    color: #f0f4ff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    animation: dzMentionsFade 0.15s ease-out;
}

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

.dz-mentions-header {
    background: #1a2235;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    border-bottom: 1px solid #1f2d42;
}

.dz-mentions-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dz-mentions-item:last-child {
    border-bottom: none;
}
.dz-mentions-item.active,
.dz-mentions-item:hover {
    background: rgba(232, 39, 58, 0.15);
}

.dz-mentions-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.dz-mentions-info {
    flex: 1;
    min-width: 0;
}
.dz-mentions-title {
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dz-mentions-badge {
    color: #10b981;
    font-weight: 900;
    font-size: 11px;
}
.dz-mentions-subtitle {
    font-size: 11px;
    color: #94a3b8;
}

.dz-mentions-empty {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

/* 3. Hover Card Preview (Desktop & Mobile Popover) */
.dz-hover-card {
    position: absolute;
    z-index: 10000;
    width: 300px;
    background: #111827;
    border: 1px solid #1f2d42;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    color: #f0f4ff;
    font-family: 'Inter', sans-serif;
    animation: dzMentionsFade 0.2s ease-out;
}

.dz-hc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.dz-hc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8273a;
    flex-shrink: 0;
}
.dz-hc-name {
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.2;
}
.dz-hc-badge {
    color: #10b981;
}
.dz-hc-handle {
    font-size: 12px;
    color: #e8273a;
    font-weight: 700;
    margin-top: 2px;
}
.dz-hc-type {
    color: #94a3b8;
    font-weight: 400;
}

.dz-hc-body {
    font-size: 12px;
    color: #cbd5e1;
    background: #1a2235;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.dz-hc-followers {
    margin-top: 6px;
    color: #10b981;
    font-weight: 700;
}

.dz-hc-footer {
    text-align: right;
}
.dz-hc-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #e8273a;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.dz-hc-btn:hover {
    background: #c51f30;
}
