/**
 * Style CSS dla systemu wspomnień użytkowników (@mentions)
 */

/* Style dla linków wspomnień */
.user-mention {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    padding: 1px 3px;
    border-radius: 3px;
    background-color: rgba(0, 115, 170, 0.1);
    transition: all 0.2s ease;
}

.user-mention:hover {
    color: #005177;
    background-color: rgba(0, 115, 170, 0.2);
    text-decoration: none;
}

/* Style dla dropdown sugestii */
.mention-dropdown {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mention-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mention-suggestion {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.mention-suggestion:last-child {
    border-bottom: none;
}

.mention-suggestion:hover,
.mention-suggestion.active {
    background-color: #f8f9fa;
}

.mention-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.mention-info {
    flex: 1;
    min-width: 0;
}

.mention-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.mention-login {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .user-mention {
        color: #4a9eff;
        background-color: rgba(74, 158, 255, 0.1);
    }

    .user-mention:hover {
        color: #66b3ff;
        background-color: rgba(74, 158, 255, 0.2);
    }

    .mention-dropdown {
        background: #2a2a2a;
        border-color: #444;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .mention-suggestion {
        border-bottom-color: #444;
    }

    .mention-suggestion:hover,
    .mention-suggestion.active {
        background-color: #333;
    }

    .mention-avatar {
        background-color: #444;
        color: #ccc;
    }

    .mention-name {
        color: #ffffff;
    }

    .mention-login {
        color: #aaa;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .mention-dropdown {
        max-height: 150px;
        min-width: 180px;
    }

    .mention-suggestion {
        padding: 6px 10px;
    }

    .mention-avatar {
        width: 28px;
        height: 28px;
        margin-right: 8px;
        font-size: 12px;
    }

    .mention-name {
        font-size: 13px;
    }

    .mention-login {
        font-size: 11px;
    }
}

/* Style dla komentarzy z wspomnieniami */
.comment-content .user-mention,
.comment-body .user-mention {
    display: inline;
    margin: 0 1px;
}

/* Animacje */
@keyframes mentionFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mention-dropdown {
    animation: mentionFadeIn 0.2s ease-out;
}

/* Wyróżnienie wspomnień w treści postów */
.entry-content .user-mention,
.post-content .user-mention {
    position: relative;
}

.entry-content .user-mention::before,
.post-content .user-mention::before {
    content: "👤";
    margin-right: 2px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Style dla formularzy komentarzy */
.comment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.comment-form .mention-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    .comment-form textarea:focus {
        border-color: #4a9eff;
        box-shadow: 0 0 0 1px #4a9eff;
    }

    .comment-form .mention-hint {
        color: #aaa;
    }
}











