/**
 * Adk Recent Topics — Hover Preview System
 * Sistema de Vista Previa al Pasar el Cursor
 * Compatible con SMF 2.0.*
 */

/* =============================================
   TARJETA DE VISTA PREVIA (Tooltip)
   ============================================= */
#ART_HoverPreview {
    position: fixed;
    z-index: 99999;
    width: 330px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#ART_HoverPreview.ART_HP_visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Cabecera */
#ART_HoverPreview .ART_HP_header {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 11px 14px 10px;
}

#ART_HoverPreview .ART_HP_category {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

#ART_HoverPreview .ART_HP_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5a67d8;
    flex-shrink: 0;
}

#ART_HoverPreview .ART_HP_board {
    font-size: 10px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#ART_HoverPreview .ART_HP_title {
    font-size: 13px;
    font-weight: bold;
    color: #222;
    line-height: 1.4;
}

/* Cuerpo */
#ART_HoverPreview .ART_HP_body {
    padding: 12px 14px;
}

#ART_HoverPreview .ART_HP_summary {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    min-height: 38px;
}

/* Estadísticas */
#ART_HoverPreview .ART_HP_stats {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

#ART_HoverPreview .ART_HP_stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #777;
}

#ART_HoverPreview .ART_HP_stat_icon {
    font-size: 13px;
    opacity: 0.7;
}

/* Autor */
#ART_HoverPreview .ART_HP_author_row {
    display: flex;
    align-items: center;
    gap: 9px;
}

#ART_HoverPreview .ART_HP_avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e8eaf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #5a67d8;
    flex-shrink: 0;
    text-transform: uppercase;
    border: 1px solid #c5cae9;
}

#ART_HoverPreview .ART_HP_author_text {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

#ART_HoverPreview .ART_HP_author_name {
    color: #5a67d8;
    font-weight: bold;
}

/* Pie de la tarjeta */
#ART_HoverPreview .ART_HP_footer {
    text-align: right;
    font-size: 10px;
    color: #aaa;
    font-style: italic;
    margin-top: 8px;
}

/* Spinner de carga (cuando se usa AJAX) */
#ART_HoverPreview .ART_HP_loading {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

#ART_HP_spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #5a67d8;
    border-radius: 50%;
    animation: ART_HP_spin 0.7s linear infinite;
    margin-bottom: 6px;
}

@keyframes ART_HP_spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   FILAS DE TEMAS — indicador de hover
   ============================================= */
.ART_postBg tr.ART_HP_row {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.ART_postBg tr.ART_HP_row:hover {
    background-color: rgba(90, 103, 216, 0.05);
}

.ART_postBg tr.ART_HP_row td a {
    position: relative;
}

/* Pequeño indicador visual en el enlace */
.ART_postBg tr.ART_HP_row:hover td:first-child a::after {
    content: "↗";
    font-size: 10px;
    color: #5a67d8;
    margin-left: 4px;
    opacity: 0.7;
}
